From b9dae8fbab5c49d5cb7d117de9a782217e6b0f60 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 13 May 2016 15:56:51 +0200 Subject: Add mako support, closes #126 --- ftdetect/polyglot.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ftdetect') 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 -- cgit v1.2.3