diff options
Diffstat (limited to 'ftplugin/dhall.vim')
-rw-r--r-- | ftplugin/dhall.vim | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/ftplugin/dhall.vim b/ftplugin/dhall.vim index 76a6bd22..d0a702ea 100644 --- a/ftplugin/dhall.vim +++ b/ftplugin/dhall.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/dhall.vim', 1, 1), Filter) -if len(files) > 0 - exec 'source ' . files[0] +if !polyglot#util#IsEnabled('dhall', expand('<sfile>:p')) finish endif -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dhall') == -1 if exists('b:dhall_ftplugin') finish @@ -50,5 +45,3 @@ if exists('g:dhall_format') endif au BufNewFile,BufRead *.dhall setl shiftwidth=2 - -endif |