mirror of
https://github.com/junegunn/vim-plug.git
synced 2025-12-08 18:04:46 +08:00
Reload plugins after everything's ready
This commit is contained in:
7
plug.vim
7
plug.vim
@@ -128,7 +128,6 @@ function! s:source(from, ...)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! plug#end()
|
function! plug#end()
|
||||||
let reload = !has('vim_starting')
|
|
||||||
if !exists('g:plugs')
|
if !exists('g:plugs')
|
||||||
return s:err('Call plug#begin() first')
|
return s:err('Call plug#begin() first')
|
||||||
endif
|
endif
|
||||||
@@ -189,12 +188,12 @@ function! plug#end()
|
|||||||
augroup END
|
augroup END
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
if reload
|
|
||||||
call s:reload()
|
|
||||||
endif
|
|
||||||
call s:reorg_rtp()
|
call s:reorg_rtp()
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
syntax enable
|
syntax enable
|
||||||
|
if !has('vim_starting')
|
||||||
|
call s:reload()
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:loaded_names()
|
function! s:loaded_names()
|
||||||
|
|||||||
Reference in New Issue
Block a user