summaryrefslogtreecommitdiffstats
path: root/ftplugin/dockerfile.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/dockerfile.vim')
-rw-r--r--ftplugin/dockerfile.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/ftplugin/dockerfile.vim b/ftplugin/dockerfile.vim
index 950a48bc..62d99f39 100644
--- a/ftplugin/dockerfile.vim
+++ b/ftplugin/dockerfile.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/dockerfile.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('dockerfile', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dockerfile') == -1
" Vim filetype plugin
" Language: Dockerfile
@@ -23,5 +18,3 @@ let b:did_ftplugin = 1
let b:undo_ftplugin = "setl commentstring<"
setlocal commentstring=#\ %s
-
-endif