summaryrefslogtreecommitdiffstats
path: root/ftplugin/jproperties.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/jproperties.vim')
-rw-r--r--ftplugin/jproperties.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/ftplugin/jproperties.vim b/ftplugin/jproperties.vim
index 5839c997..b67a00c3 100644
--- a/ftplugin/jproperties.vim
+++ b/ftplugin/jproperties.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, 'ftplugin/jproperties.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('jproperties', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'jproperties') == -1
" Vim filetype plugin
" Language: Java properties file
@@ -22,5 +17,3 @@ setlocal comments=:#,:!
setlocal commentstring=#\ %s
let b:undo_ftplugin = "setl cms< com< fo<"
-
-endif