summaryrefslogtreecommitdiffstats
path: root/ftplugin/tablegen.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/tablegen.vim')
-rw-r--r--ftplugin/tablegen.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/ftplugin/tablegen.vim b/ftplugin/tablegen.vim
index 88516995..28bd6fdd 100644
--- a/ftplugin/tablegen.vim
+++ b/ftplugin/tablegen.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/tablegen.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('llvm', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'llvm') == -1
" Vim filetype plugin file
" Language: LLVM TableGen
@@ -19,5 +14,3 @@ let b:did_ftplugin = 1
setlocal matchpairs+=<:>
setlocal softtabstop=2 shiftwidth=2
setlocal expandtab
-
-endif