Skip to content

Commit

Permalink
Display not-loaded status with all plugins that have a dir (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed authored and junegunn committed Oct 15, 2017
1 parent ddc67fc commit 9813d5e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2246,15 +2246,16 @@ function! s:status()
let unloaded = 0
let [cnt, total] = [0, len(g:plugs)]
for [name, spec] in items(g:plugs)
let is_dir = isdirectory(spec.dir)
if has_key(spec, 'uri')
if isdirectory(spec.dir)
if is_dir
let [err, _] = s:git_validate(spec, 1)
let [valid, msg] = [empty(err), empty(err) ? 'OK' : err]
else
let [valid, msg] = [0, 'Not found. Try PlugInstall.']
endif
else
if isdirectory(spec.dir)
if is_dir
let [valid, msg] = [1, 'OK']
else
let [valid, msg] = [0, 'Not found.']
Expand All @@ -2263,7 +2264,7 @@ function! s:status()
let cnt += 1
let ecnt += !valid
" `s:loaded` entry can be missing if PlugUpgraded
if valid && get(s:loaded, name, -1) == 0
if is_dir && get(s:loaded, name, -1) == 0
let unloaded = 1
let msg .= ' (not loaded)'
endif
Expand Down

0 comments on commit 9813d5e

Please sign in to comment.