Reload plugins after everything's ready
This commit is contained in:
parent
9d63fe6aeb
commit
cb08d6036b
1 changed files with 3 additions and 4 deletions
7
plug.vim
7
plug.vim
|
@ -128,7 +128,6 @@ function! s:source(from, ...)
|
|||
endfunction
|
||||
|
||||
function! plug#end()
|
||||
let reload = !has('vim_starting')
|
||||
if !exists('g:plugs')
|
||||
return s:err('Call plug#begin() first')
|
||||
endif
|
||||
|
@ -189,12 +188,12 @@ function! plug#end()
|
|||
augroup END
|
||||
endfor
|
||||
|
||||
if reload
|
||||
call s:reload()
|
||||
endif
|
||||
call s:reorg_rtp()
|
||||
filetype plugin indent on
|
||||
syntax enable
|
||||
if !has('vim_starting')
|
||||
call s:reload()
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! s:loaded_names()
|
||||
|
|
Loading…
Reference in a new issue