Skip to content

Commit db6e246

Browse files
committed
Show the names of missing plugins
Ref wklken#366
1 parent 0f1958f commit db6e246

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

core/autoload/spacevim/vim/plug.vim

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ endfunction
66

77
" https://github.com/junegunn/vim-plug/wiki/extra#automatically-install-missing-plugins-on-startup
88
function! spacevim#vim#plug#check(...) abort
9-
let l:msg = '[space-vim] Some layers need to install the missing plugins.'
10-
if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
9+
let l:msg = '[space-vim] Need to install the missing plugins: '
10+
let missing = filter(values(g:plugs), '!isdirectory(v:val.dir)')
11+
if len(missing)
12+
let plugs = map(missing, 'split(v:val.dir, "/")[-1]')
13+
let l:msg .= string(plugs)
1114
if a:0 == 1
1215
if s:ask(l:msg)
1316
silent PlugInstall --sync | q

0 commit comments

Comments
 (0)