summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-10-14 23:23:32 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-10-14 23:23:32 +0200
commitc45f0b8f640156142773eeb4d13b86b79605291a (patch)
treefacc238cf9d05682123ee8dfebcb2ccd31d1d44e
parentbbee246aaeb7fb689c7a2ae2bb911e34cabe7b00 (diff)
downloadvim-polyglot-c45f0b8f640156142773eeb4d13b86b79605291a.tar.gz
vim-polyglot-c45f0b8f640156142773eeb4d13b86b79605291a.zip
Make sure custom ftdetect is loaded, fixes #587
-rw-r--r--ftdetect/polyglot.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index a408d502..6794397b 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -117,6 +117,11 @@ func! s:StarSetf(ft)
endif
endfunc
+" Load user-defined filetype.vim
+augroup filetypedetect
+runtime! filetype.vim
+augroup END
+
augroup filetypedetect
" DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE
@@ -4834,6 +4839,10 @@ au BufNewFile,BufRead *.txt
\| setf text
\| endif
+" Use the filetype detect plugins. They may overrule any of the previously
+" detected filetypes.
+runtime! ftdetect/*.vim
+
" NOTE: The above command could have ended the filetypedetect autocmd group
" and started another one. Let's make sure it has ended to get to a consistent
" state.