mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-19 18:47:29 -07:00
Fix: dependent plugins not loaded after initial installaion
This commit is contained in:
parent
6ddee62977
commit
ee04a646d3
4
plug.vim
4
plug.vim
@ -406,11 +406,15 @@ function! s:update_impl(pull, args) abort
|
|||||||
normal! 2G
|
normal! 2G
|
||||||
redraw
|
redraw
|
||||||
|
|
||||||
|
let len = len(g:plugs)
|
||||||
if has('ruby') && threads > 1
|
if has('ruby') && threads > 1
|
||||||
call s:update_parallel(a:pull, todo, threads)
|
call s:update_parallel(a:pull, todo, threads)
|
||||||
else
|
else
|
||||||
call s:update_serial(a:pull, todo)
|
call s:update_serial(a:pull, todo)
|
||||||
endif
|
endif
|
||||||
|
if len(g:plugs) > len
|
||||||
|
call plug#end()
|
||||||
|
endif
|
||||||
call s:finish(a:pull)
|
call s:finish(a:pull)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
@ -328,11 +328,7 @@ Execute (Partial PlugInstall):
|
|||||||
PlugInstall vim-fnr vim-easy-align 1
|
PlugInstall vim-fnr vim-easy-align 1
|
||||||
q
|
q
|
||||||
|
|
||||||
Execute (TODO Check dependent plugin):
|
Execute (Check dependent plugin):
|
||||||
^ It is a known issue that when a dependent plugin is installed, it is not
|
|
||||||
^ immediately added to runtimepath. It only becomes available when
|
|
||||||
^ plug#end() is called.
|
|
||||||
|
|
||||||
Assert &rtp =~ 'pseudocl', &rtp
|
Assert &rtp =~ 'pseudocl', &rtp
|
||||||
|
|
||||||
Given (Unaligned code):
|
Given (Unaligned code):
|
||||||
|
Loading…
Reference in New Issue
Block a user