From 1ba88cc7d8abdd934bd67407d9127ba38568ccf6 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 4 Mar 2019 10:57:25 +0100 Subject: Add gradle compiler support, closes #358 --- ftdetect/polyglot.vim | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ftdetect') diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 5dc3b474..3316c3b7 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -427,6 +427,14 @@ unlet s:cpo_save augroup end endif +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gradle') == -1 + augroup filetypedetect + " gradle, from gradle.vim in tfnico/vim-gradle +" gradle syntax highlighting +au BufNewFile,BufRead *.gradle set filetype=groovy + augroup end +endif + if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1 augroup filetypedetect " graphql, from graphql.vim in jparise/vim-graphql -- cgit v1.2.3