From 27289deb5c52e253568baf111df11773dbb2fdd8 Mon Sep 17 00:00:00 2001 From: "Jeremy Pallats/starcraft.man" Date: Wed, 26 Aug 2015 08:30:14 -0400 Subject: [PATCH] Fix #272 PlugUpdate and delayed loading * Force syntax files sourcing on lod_ft. --- plug.vim | 2 +- test/workflow.vader | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plug.vim b/plug.vim index 6e14d0e..9eb11fc 100644 --- a/plug.vim +++ b/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 diff --git a/test/workflow.vader b/test/workflow.vader index 276a6ea..e8db40f 100644 --- a/test/workflow.vader +++ b/test/workflow.vader @@ -823,7 +823,7 @@ Execute (Filetype-based on-demand loading): AssertEqual ['xxx/ftdetect', 'xxx/after/ftdetect'], g:xxx setf xxx - AssertEqual ['xxx/ftdetect', 'xxx/after/ftdetect', 'xxx/plugin', 'xxx/after/plugin', 'xxx/ftplugin', 'xxx/after/ftplugin', 'xxx/indent', 'xxx/after/indent', 'xxx/syntax', 'xxx/after/syntax'], g:xxx + AssertEqual ['xxx/ftdetect', 'xxx/after/ftdetect', 'xxx/plugin', 'xxx/after/plugin', 'xxx/syntax', 'xxx/after/syntax', 'xxx/ftplugin', 'xxx/after/ftplugin', 'xxx/indent', 'xxx/after/indent', 'xxx/syntax', 'xxx/after/syntax'], g:xxx Before: