1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 01:10:05 +08:00

Fix config loadding

This commit is contained in:
wsdjeg 2017-01-14 21:17:24 +08:00
parent 0a043c9b43
commit 193d3a71fa
2 changed files with 12 additions and 0 deletions

View File

@ -100,6 +100,9 @@ function! SpaceVim#default#SetPlugins() abort
call add(g:spacevim_plugin_groups, 'web')
call add(g:spacevim_plugin_groups, 'lang')
call add(g:spacevim_plugin_groups, 'edit')
call add(g:spacevim_plugin_groups, 'ui')
call add(g:spacevim_plugin_groups, 'tools')
call add(g:spacevim_plugin_groups, 'checkers')
call add(g:spacevim_plugin_groups, 'format')
call add(g:spacevim_plugin_groups, 'chat')

View File

@ -24,6 +24,7 @@ function! s:load_plugins() abort
call zvim#plug#add(plugin[0])
endif
endfor
call s:loadLayerConfig(group)
endfor
for plugin in g:spacevim_custom_plugins
if len(plugin) == 2
@ -43,6 +44,14 @@ function! s:getLayerPlugins(layer) abort
return p
endfunction
function! s:loadLayerConfig(layer) abort
try
call SpaceVim#layers#{a:layer}#config()
catch /^Vim\%((\a\+)\)\=:E117/
endtry
endfunction
function! s:disable_plugins(plugin_list) abort
for name in a:plugin_list
call dein#disable(name)