summaryrefslogtreecommitdiffstats
path: root/compiler/gradlew.vim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/gradlew.vim')
-rw-r--r--compiler/gradlew.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/compiler/gradlew.vim b/compiler/gradlew.vim
index 3cfd0e80..68f23d76 100644
--- a/compiler/gradlew.vim
+++ b/compiler/gradlew.vim
@@ -1,11 +1,6 @@
-let s:base = expand("<sfile>:h:h")
-let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
-let files = filter(globpath(&rtp, 'compiler/gradlew.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('gradle', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'gradle') == -1
" Vim Compiler File
" Compiler: gradlew
@@ -31,5 +26,3 @@ CompilerSet errorformat=
\%E%f:\ %\\d%\\+:\ %m\ @\ line\ %l\\,\ column\ %c.,%-C%.%#,%Z%p^,
\%E%>%f:\ %\\d%\\+:\ %m,%C\ @\ line\ %l\\,\ column\ %c.,%-C%.%#,%Z%p^,
\%-G%.%#
-
-endif