summaryrefslogtreecommitdiffstats
path: root/ftplugin/ada.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/ada.vim')
-rw-r--r--ftplugin/ada.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/ftplugin/ada.vim b/ftplugin/ada.vim
index 1d067182..62d252fd 100644
--- a/ftplugin/ada.vim
+++ b/ftplugin/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, 'ftplugin/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.
@@ -217,5 +212,3 @@ finish " 1}}}
"------------------------------------------------------------------------------
" vim: textwidth=78 nowrap tabstop=8 shiftwidth=3 softtabstop=3 noexpandtab
" vim: foldmethod=marker
-
-endif