Skip to content

Commit a190f4e

Browse files
committed
Merge pull request #273 from starcraftman/fix_after_syntax
Fix #272 PlugUpdate and delayed loading
2 parents a6f3a02 + 27289de commit a190f4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: plug.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ function! s:lod(names, types)
399399
endfunction
400400

401401
function! s:lod_ft(pat, names)
402-
call s:lod(a:names, ['plugin', 'after/plugin'])
402+
call s:lod(a:names, ['plugin', 'after/plugin', 'syntax', 'after/syntax'])
403403
execute 'autocmd! PlugLOD FileType' a:pat
404404
if exists('#filetypeplugin#FileType')
405405
doautocmd filetypeplugin FileType

Diff for: test/workflow.vader

+1-1
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ Execute (Filetype-based on-demand loading):
823823
AssertEqual ['xxx/ftdetect', 'xxx/after/ftdetect'], g:xxx
824824

825825
setf xxx
826-
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
826+
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
827827

828828
Before:
829829

0 commit comments

Comments
 (0)