mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 07:00:05 +08:00
Fix config loadding
This commit is contained in:
parent
0a043c9b43
commit
193d3a71fa
@ -100,6 +100,9 @@ function! SpaceVim#default#SetPlugins() abort
|
|||||||
|
|
||||||
call add(g:spacevim_plugin_groups, 'web')
|
call add(g:spacevim_plugin_groups, 'web')
|
||||||
call add(g:spacevim_plugin_groups, 'lang')
|
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, 'checkers')
|
||||||
call add(g:spacevim_plugin_groups, 'format')
|
call add(g:spacevim_plugin_groups, 'format')
|
||||||
call add(g:spacevim_plugin_groups, 'chat')
|
call add(g:spacevim_plugin_groups, 'chat')
|
||||||
|
@ -24,6 +24,7 @@ function! s:load_plugins() abort
|
|||||||
call zvim#plug#add(plugin[0])
|
call zvim#plug#add(plugin[0])
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
call s:loadLayerConfig(group)
|
||||||
endfor
|
endfor
|
||||||
for plugin in g:spacevim_custom_plugins
|
for plugin in g:spacevim_custom_plugins
|
||||||
if len(plugin) == 2
|
if len(plugin) == 2
|
||||||
@ -43,6 +44,14 @@ function! s:getLayerPlugins(layer) abort
|
|||||||
return p
|
return p
|
||||||
endfunction
|
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
|
function! s:disable_plugins(plugin_list) abort
|
||||||
for name in a:plugin_list
|
for name in a:plugin_list
|
||||||
call dein#disable(name)
|
call dein#disable(name)
|
||||||
|
Loading…
Reference in New Issue
Block a user