mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-01 06:41:34 +08:00
revert(cmd): remove Plugin command
This commit is contained in:
parent
b114903f5f
commit
30a0999c7c
@ -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>)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user