summaryrefslogtreecommitdiffstats
path: root/indent/autohotkey.vim
diff options
context:
space:
mode:
Diffstat (limited to 'indent/autohotkey.vim')
-rw-r--r--indent/autohotkey.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/indent/autohotkey.vim b/indent/autohotkey.vim
index 354ceeb9..99d8b6d5 100644
--- a/indent/autohotkey.vim
+++ b/indent/autohotkey.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/autohotkey.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('autohotkey', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'autohotkey') == -1
" Vim indent file
" Language: AutoHotkey
@@ -226,5 +221,3 @@ function! GetAutoHotkeyIndent()
endfunction
let b:did_indent = 1
-
-endif