mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-14 23:49:19 +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
|
unlet g:_spacevim_plugin_layer
|
||||||
for plugin in g:spacevim_custom_plugins
|
for plugin in g:spacevim_custom_plugins
|
||||||
if len(plugin) == 2
|
if len(plugin) == 2
|
||||||
call SpaceVim#plugins#add(plugin[0], plugin[1])
|
call SpaceVim#plugins#add(plugin[0], extend(plugin[1], {'overwrite' : 1}))
|
||||||
else
|
else
|
||||||
call SpaceVim#plugins#add(plugin[0])
|
call SpaceVim#plugins#add(plugin[0], {'overwrite' : 1})
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
x
Reference in New Issue
Block a user