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:
parent
4d352e1849
commit
a026eb39c4
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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user