Respect for option if the plugin is not yet installed
This commit is contained in:
parent
f222674a86
commit
62d3f1ce15
2
plug.vim
2
plug.vim
|
@ -195,7 +195,7 @@ endfunction
|
||||||
|
|
||||||
function! s:has_for(plug)
|
function! s:has_for(plug)
|
||||||
return has_key(a:plug, 'for') &&
|
return has_key(a:plug, 'for') &&
|
||||||
\ (empty(s:to_a(a:plug.for)) || len(s:glob(s:rtp(a:plug), 'plugin')))
|
\ (empty(s:to_a(a:plug.for)) || !isdirectory(a:plug.dir) || len(s:glob(s:rtp(a:plug), 'plugin')))
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! plug#end()
|
function! plug#end()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user