mirror of
https://github.com/junegunn/vim-plug.git
synced 2025-12-09 02:14:46 +08:00
Ensure ftplugin files are loaded (#24)
If `filetype plugin on` is called before `plug#end()`, filetype plugin handler is invoked before ODL autocmd from vim-plug which updates runtimepath and ftplugin files are not loaded.
This commit is contained in:
1
plug.vim
1
plug.vim
@@ -201,6 +201,7 @@ endfunction
|
|||||||
function! s:lod_ft(pat, name, plug)
|
function! s:lod_ft(pat, name, plug)
|
||||||
call s:lod(a:plug, ['plugin', 'after'])
|
call s:lod(a:plug, ['plugin', 'after'])
|
||||||
execute 'autocmd! PlugLOD FileType ' . a:pat
|
execute 'autocmd! PlugLOD FileType ' . a:pat
|
||||||
|
let &l:filetype = &l:filetype
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:lod_cmd(cmd, bang, l1, l2, args, plug)
|
function! s:lod_cmd(cmd, bang, l1, l2, args, plug)
|
||||||
|
|||||||
Reference in New Issue
Block a user