diff options
Diffstat (limited to 'indent/applescript.vim')
-rw-r--r-- | indent/applescript.vim | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/indent/applescript.vim b/indent/applescript.vim index 0e31d286..88fc6835 100644 --- a/indent/applescript.vim +++ b/indent/applescript.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, 'indent/applescript.vim', 1, 1), Filter) -if len(files) > 0 - exec 'source ' . files[0] +if !polyglot#util#IsEnabled('applescript', expand('<sfile>:p')) finish endif -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'applescript') == -1 "Plugin Name: applescript indent file. "Author: mityu @@ -84,5 +79,3 @@ let &cpo=s:cpo_save unlet s:cpo_save " vim: foldmethod=marker - -endif |