Change PlugStatus output to match those of other commands
This commit is contained in:
parent
ae6f3254d8
commit
8986f87b83
8
plug.vim
8
plug.vim
|
@ -741,17 +741,21 @@ endfunction
|
||||||
function! s:status()
|
function! s:status()
|
||||||
call s:prepare()
|
call s:prepare()
|
||||||
call append(0, 'Checking plugins')
|
call append(0, 'Checking plugins')
|
||||||
|
call append(1, '')
|
||||||
|
|
||||||
let ecnt = 0
|
let ecnt = 0
|
||||||
|
let [cnt, total] = [0, len(g:plugs)]
|
||||||
for [name, spec] in items(g:plugs)
|
for [name, spec] in items(g:plugs)
|
||||||
if isdirectory(spec.dir)
|
if isdirectory(spec.dir)
|
||||||
let [valid, msg] = s:git_valid(spec, 1, 1)
|
let [valid, msg] = s:git_valid(spec, 1, 1)
|
||||||
else
|
else
|
||||||
let [valid, msg] = [0, 'Not found. Try PlugInstall.']
|
let [valid, msg] = [0, 'Not found. Try PlugInstall.']
|
||||||
endif
|
endif
|
||||||
|
let cnt += 1
|
||||||
let ecnt += !valid
|
let ecnt += !valid
|
||||||
call append(2, s:format_message(valid, name, msg))
|
call s:progress_bar(2, repeat('=', cnt), total)
|
||||||
call cursor(3, 1)
|
call append(3, s:format_message(valid, name, msg))
|
||||||
|
normal! 2G
|
||||||
redraw
|
redraw
|
||||||
endfor
|
endfor
|
||||||
call setline(1, 'Finished. '.ecnt.' error(s).')
|
call setline(1, 'Finished. '.ecnt.' error(s).')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user