summaryrefslogtreecommitdiffstats
path: root/autoload/ada.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/ada.vim')
-rw-r--r--autoload/ada.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/autoload/ada.vim b/autoload/ada.vim
index 9a01456c..e54d05e2 100644
--- a/autoload/ada.vim
+++ b/autoload/ada.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, 'autoload/ada.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('ada', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ada') == -1
"------------------------------------------------------------------------------
" Description: Perform Ada specific completion & tagging.
@@ -644,5 +639,3 @@ finish " 1}}}
"------------------------------------------------------------------------------
" vim: textwidth=78 wrap tabstop=8 shiftwidth=3 softtabstop=3 noexpandtab
" vim: foldmethod=marker
-
-endif