Skip to content
This repository was archived by the owner on Feb 20, 2025. It is now read-only.

Commit 30a0999

Browse files
committed
revert(cmd): remove Plugin command
1 parent b114903 commit 30a0999

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

autoload/SpaceVim/commands.vim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ function! SpaceVim#commands#load() abort
6464
" defined already.
6565
command! DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis
6666
\ | wincmd p | diffthis
67-
command! -nargs=* -complete=custom,SpaceVim#plugins#complete_plugs Plugin :call SpaceVim#plugins#Plugin(<f-args>)
6867
""
6968
" Open specific project in @section(options-src_root)
7069
command! -nargs=+ -complete=custom,SpaceVim#plugins#projectmanager#complete_project OpenProject :call SpaceVim#plugins#projectmanager#OpenProject(<f-args>)

autoload/SpaceVim/plugins.vim

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -92,24 +92,6 @@ function! SpaceVim#plugins#complete_plugs(ArgLead, CmdLine, CursorPos) abort
9292
return join(plugins#list(), "\n")
9393
endfunction
9494

95-
function! SpaceVim#plugins#Plugin(...) abort
96-
let adds = []
97-
let updates = []
98-
let flag = 0
99-
for a in a:000
100-
if flag == 1
101-
call add(adds, a)
102-
elseif flag == 2
103-
call add(updates, a)
104-
endif
105-
if a ==# '-update'
106-
let flag = 1
107-
elseif a ==# '-openurl'
108-
let flag = 2
109-
endif
110-
endfor
111-
echo string(adds) . "\n" . string(updates)
112-
endfunction
11395
function! s:disable_plugins(plugin_list) abort
11496
if g:spacevim_plugin_manager ==# 'dein'
11597
for name in a:plugin_list

0 commit comments

Comments
 (0)