summaryrefslogtreecommitdiffstats
path: root/ftdetect/polyglot.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2016-05-13 15:56:51 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2016-05-13 16:10:17 +0200
commitb9dae8fbab5c49d5cb7d117de9a782217e6b0f60 (patch)
tree678c559c854a064e9ad5da2db1a76c8bea354055 /ftdetect/polyglot.vim
parent84593f2d7f25ba215a7bab954d639a2718f88c24 (diff)
downloadvim-polyglot-b9dae8fbab5c49d5cb7d117de9a782217e6b0f60.tar.gz
vim-polyglot-b9dae8fbab5c49d5cb7d117de9a782217e6b0f60.zip
Add mako support, closes #126
Diffstat (limited to 'ftdetect/polyglot.vim')
-rw-r--r--ftdetect/polyglot.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 5f30e46e..160c164f 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -270,6 +270,10 @@ au BufNewFile,BufRead */templates/**.liquid,*/layout/**.liquid,*/snippets/**.liq
\ let b:liquid_subtype = 'html' |
\ set ft=liquid |
endif
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mako') == -1
+
+au BufRead,BufNewFile *.mako set filetype=mako
+endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'markdown') == -1
autocmd BufNewFile,BufRead *.markdown,*.md,*.mdown,*.mkd,*.mkdn