summaryrefslogtreecommitdiffstats
path: root/ftdetect
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-03-04 10:57:25 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2019-03-04 10:57:25 +0100
commit1ba88cc7d8abdd934bd67407d9127ba38568ccf6 (patch)
tree6379ee4d976433ab1fdc8b672ebcfd8dd9477dfa /ftdetect
parentca2fbfe03891afcad18477d8b7da25e1e139cd30 (diff)
downloadvim-polyglot-1ba88cc7d8abdd934bd67407d9127ba38568ccf6.tar.gz
vim-polyglot-1ba88cc7d8abdd934bd67407d9127ba38568ccf6.zip
Add gradle compiler support, closes #358
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/polyglot.vim8
1 files changed, 8 insertions, 0 deletions
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