diff options
Diffstat (limited to 'ftplugin/llvm.vim')
-rw-r--r-- | ftplugin/llvm.vim | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/ftplugin/llvm.vim b/ftplugin/llvm.vim index dcb43a4b..67da6358 100644 --- a/ftplugin/llvm.vim +++ b/ftplugin/llvm.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/llvm.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 Assembly @@ -19,5 +14,3 @@ let b:did_ftplugin = 1 setlocal softtabstop=2 shiftwidth=2 setlocal expandtab setlocal comments+=:; - -endif |