summaryrefslogtreecommitdiffstats
path: root/ftdetect
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-03-04 09:52:59 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2019-03-04 09:52:59 +0100
commitec5884b1d0e58dd4727530a4f7e8a30c21b713c1 (patch)
tree3a522dab0386be900fd008f43354e433b7ced111 /ftdetect
parent92f779dc7768d3963ec99d9cece7a17983e13d4c (diff)
downloadvim-polyglot-ec5884b1d0e58dd4727530a4f7e8a30c21b713c1.tar.gz
vim-polyglot-ec5884b1d0e58dd4727530a4f7e8a30c21b713c1.zip
Add jinja support, closes #269
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/polyglot.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index c61fa086..ef4d4d03 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -67,6 +67,10 @@ augroup filetypedetect
" swift
autocmd BufNewFile,BufRead *.swift set filetype=swift
+
+
+ "jinja
+ autocmd BufNewFile,BufRead *.jinja2,*.j2,*.jinja,*.nunjucks,*.nunjs,*.njk set ft=jinja
augroup END
" Fix for https://github.com/sheerun/vim-polyglot/issues/236#issuecomment-387984954