summaryrefslogtreecommitdiffstats
path: root/ftdetect/polyglot.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftdetect/polyglot.vim')
-rw-r--r--ftdetect/polyglot.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 0f7159c3..ff17e516 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -2024,6 +2024,8 @@ if !has_key(s:disabled_packages, 'tads')
endif
if !has_key(s:disabled_packages, 'gitignore')
+ au BufNewFile,BufRead *.git/info/exclude set ft=gitignore
+ au BufNewFile,BufRead */.config/git/ignore set ft=gitignore
au BufNewFile,BufRead {.,}gitignore set ft=gitignore
endif