mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 00:40:05 +08:00
Fix custom plugin's overwrite option
This commit is contained in:
parent
c06bce147c
commit
3c69bc6251
@ -38,9 +38,9 @@ function! s:load_plugins() abort
|
||||
unlet g:_spacevim_plugin_layer
|
||||
for plugin in g:spacevim_custom_plugins
|
||||
if len(plugin) == 2
|
||||
call SpaceVim#plugins#add(plugin[0], plugin[1])
|
||||
call SpaceVim#plugins#add(plugin[0], extend(plugin[1], {'overwrite' : 1}))
|
||||
else
|
||||
call SpaceVim#plugins#add(plugin[0])
|
||||
call SpaceVim#plugins#add(plugin[0], {'overwrite' : 1})
|
||||
endif
|
||||
endfor
|
||||
endfunction
|
||||
|
Loading…
Reference in New Issue
Block a user