diff --git a/autoload/zvim/plug.vim b/autoload/zvim/plug.vim index c4f8b717e..b061be3dc 100644 --- a/autoload/zvim/plug.vim +++ b/autoload/zvim/plug.vim @@ -59,7 +59,7 @@ function! s:install_manager() elseif g:spacevim_plugin_manager == 'vim-plug' "auto install vim-plug if filereadable(expand('~/.cache/vim-plug/autoload/plug.vim')) - let g:spacevim_dein_installed = 1 + let g:spacevim_vim_plug_installed = 1 else if executable('curl') exec '!curl -fLo ' @@ -67,7 +67,7 @@ function! s:install_manager() \ . ' --create-dirs ' \ . 'https://raw.githubusercontent.com/' \ . 'junegunn/vim-plug/master/plug.vim' - let g:spacevim_dein_installed = 1 + let g:spacevim_vim_plug_installed = 1 else echohl WarningMsg echom "You need install curl!" @@ -158,6 +158,12 @@ function! zvim#plug#add(repo,...) abort else call dein#add(a:repo) endif + elseif g:spacevim_plugin_manager == 'vim-plug' + if len(a:000) > 0 + exec "Plug '".a:repo."', ".join(a:000,',') + else + exec "Plug '".a:repo."'" + endif endif exec 'call add(g:unite_source_menu_menus' \ . '.AddedPlugins.command_candidates, ["['