Kaynağa Gözat

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.
Junegunn Choi 11 yıl önce
ebeveyn
işleme
a026eb39c4
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      plug.vim

+ 1 - 0
plug.vim

@@ -201,6 +201,7 @@ endfunction
 function! s:lod_ft(pat, name, plug)
   call s:lod(a:plug, ['plugin', 'after'])
   execute 'autocmd! PlugLOD FileType ' . a:pat
+  let &l:filetype = &l:filetype
 endfunction
 
 function! s:lod_cmd(cmd, bang, l1, l2, args, plug)