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:
parent
40796d83ca
commit
127dc0dc9a
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user