1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-01 03:21:33 +08:00

revert(cmd): remove Plugin command

This commit is contained in:
Eric Wong 2025-02-16 23:00:36 +08:00
parent b114903f5f
commit 30a0999c7c
2 changed files with 0 additions and 19 deletions

View File

@ -64,7 +64,6 @@ function! SpaceVim#commands#load() abort
" defined already.
command! DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis
\ | wincmd p | diffthis
command! -nargs=* -complete=custom,SpaceVim#plugins#complete_plugs Plugin :call SpaceVim#plugins#Plugin(<f-args>)
""
" Open specific project in @section(options-src_root)
command! -nargs=+ -complete=custom,SpaceVim#plugins#projectmanager#complete_project OpenProject :call SpaceVim#plugins#projectmanager#OpenProject(<f-args>)

View File

@ -92,24 +92,6 @@ function! SpaceVim#plugins#complete_plugs(ArgLead, CmdLine, CursorPos) abort
return join(plugins#list(), "\n")
endfunction
function! SpaceVim#plugins#Plugin(...) abort
let adds = []
let updates = []
let flag = 0
for a in a:000
if flag == 1
call add(adds, a)
elseif flag == 2
call add(updates, a)
endif
if a ==# '-update'
let flag = 1
elseif a ==# '-openurl'
let flag = 2
endif
endfor
echo string(adds) . "\n" . string(updates)
endfunction
function! s:disable_plugins(plugin_list) abort
if g:spacevim_plugin_manager ==# 'dein'
for name in a:plugin_list