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

Add custom plugin

This commit is contained in:
wsdjeg 2018-05-22 21:21:42 +08:00
parent a6b208050a
commit 95f8610833

View File

@ -94,6 +94,10 @@ function! SpaceVim#custom#apply(config) abort
call SpaceVim#layers#load(layer.name, layer)
endif
endfor
let custom_plugins = get(a:config, 'custom_plugins', [])
for plugin in custom_plugins
call add(g:spacevim_custom_plugins, [plugin.name, plugin])
endfor
let bootstrap_before = get(options, 'bootstrap_before', '')
let g:_spacevim_bootstrap_after = get(options, 'bootstrap_after', '')
if !empty(bootstrap_before)