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

Fix dein support

close #3513

ref: https://github.com/dracula/vim/issues/190
This commit is contained in:
Shidong Wang 2020-07-19 11:03:24 +08:00
parent 8c3d1d8281
commit 1085213bd1

View File

@ -119,10 +119,10 @@ function! SpaceVim#custom#apply(config, type) abort
" this the first argv should be get(plugin, 'repo', get(plugin, 'name', " this the first argv should be get(plugin, 'repo', get(plugin, 'name',
" '')) " ''))
" BTW, we also need to check if the plugin has name or repo key " BTW, we also need to check if the plugin has name or repo key
if has_key(plugin, 'name') if has_key(plugin, 'repo')
call add(g:spacevim_custom_plugins, [plugin.name, plugin])
elseif has_key(plugin, 'repo')
call add(g:spacevim_custom_plugins, [plugin.repo, plugin]) call add(g:spacevim_custom_plugins, [plugin.repo, plugin])
elseif has_key(plugin, 'name')
call add(g:spacevim_custom_plugins, [plugin.name, plugin])
else else
call SpaceVim#logger#warn('custom_plugins should contains repo key!') call SpaceVim#logger#warn('custom_plugins should contains repo key!')
call SpaceVim#logger#info(string(plugin)) call SpaceVim#logger#info(string(plugin))