Skip to content

Commit c45f0b8

Browse files
committed
Make sure custom ftdetect is loaded, fixes #587
1 parent bbee246 commit c45f0b8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ftdetect/polyglot.vim

+9
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ func! s:StarSetf(ft)
117117
endif
118118
endfunc
119119

120+
" Load user-defined filetype.vim
121+
augroup filetypedetect
122+
runtime! filetype.vim
123+
augroup END
124+
120125
augroup filetypedetect
121126

122127
" DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE
@@ -4834,6 +4839,10 @@ au BufNewFile,BufRead *.txt
48344839
\| setf text
48354840
\| endif
48364841

4842+
" Use the filetype detect plugins. They may overrule any of the previously
4843+
" detected filetypes.
4844+
runtime! ftdetect/*.vim
4845+
48374846
" NOTE: The above command could have ended the filetypedetect autocmd group
48384847
" and started another one. Let's make sure it has ended to get to a consistent
48394848
" state.

0 commit comments

Comments
 (0)