1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:10:04 +08:00

Bug: can not override layer options.

Fix #793
This commit is contained in:
wsdjeg 2017-08-26 20:17:33 +08:00
parent 0d220f5d34
commit f33fbfd391

View File

@ -12,9 +12,12 @@ function! SpaceVim#layers#load(layer, ...) abort
endif
if index(g:spacevim_plugin_groups, a:layer) == -1
call add(g:spacevim_plugin_groups, a:layer)
if a:0 == 1 && type(a:1) == 4
call SpaceVim#layers#{a:layer}#set_variable(a:1)
endif
if a:0 == 1 && type(a:1) == 4
try
call SpaceVim#layers#{a:layer}#set_variable(a:1)
catch /^Vim\%((\a\+)\)\=:E117/
endtry
endif
if a:0 > 0 && type(a:1) == 1
for l in a:000