mirror of
https://github.com/junegunn/vim-plug.git
synced 2025-12-23 00:51:25 +08:00
Fix #272 PlugUpdate and delayed loading
* Force syntax files sourcing on lod_ft.
This commit is contained in:
2
plug.vim
2
plug.vim
@@ -399,7 +399,7 @@ function! s:lod(names, types)
|
||||
endfunction
|
||||
|
||||
function! s:lod_ft(pat, names)
|
||||
call s:lod(a:names, ['plugin', 'after/plugin'])
|
||||
call s:lod(a:names, ['plugin', 'after/plugin', 'syntax', 'after/syntax'])
|
||||
execute 'autocmd! PlugLOD FileType' a:pat
|
||||
if exists('#filetypeplugin#FileType')
|
||||
doautocmd filetypeplugin FileType
|
||||
|
||||
Reference in New Issue
Block a user