From 5658b62b7afb7d4855e2634d8d067cbdf1d332c9 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 6 Dec 2015 11:38:02 +0100 Subject: Add dart language support, closes #93 --- ftdetect/polyglot.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ftdetect') diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 65650431..6869abf5 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -34,6 +34,10 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cucumber') == - autocmd BufNewFile,BufReadPost *.feature,*.story set filetype=cucumber endif +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dart') == -1 + +autocmd BufRead,BufNewFile *.dart set filetype=dart +endif if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dockerfile') == -1 au BufNewFile,BufRead Dockerfile set filetype=dockerfile -- cgit v1.2.3