1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 22:20:06 +08:00

split core layers

This commit is contained in:
wsdjeg 2017-01-13 00:35:46 +08:00
parent 40796d83ca
commit 127dc0dc9a
2 changed files with 14 additions and 2 deletions

View File

@ -1,7 +1,10 @@
function! SpaceVim#layers#core#plugins() abort
return [
\ ['Shougo/vimproc.vim', {'build' : 'make'}],
\ ['hecal3/vim-leader-guide', {'loadconf': 1, 'loadconf_before' : 1, 'merged' : 0}],
\ ]
endfunction
function! SpaceVim#layers#core#config() abort
endfunction

View File

@ -433,6 +433,15 @@ function! s:load_plugins() abort
endfor
endfunction
function! s:getLayerPlugins(layer) abort
try
return SpaceVim#layers#{a:layer}#plugins()
catch /^Vim\%((\a\+)\)\=:E117/
return []
endtry
endfunction
function! s:disable_plugins(plugin_list) abort
for name in a:plugin_list
call dein#disable(name)