diff options
Diffstat (limited to 'compiler/fish.vim')
-rw-r--r-- | compiler/fish.vim | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/compiler/fish.vim b/compiler/fish.vim index 6dfb84f9..1ae935f8 100644 --- a/compiler/fish.vim +++ b/compiler/fish.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, 'compiler/fish.vim', 1, 1), Filter) -if len(files) > 0 - exec 'source ' . files[0] +if !polyglot#util#IsEnabled('fish', expand('<sfile>:p')) finish endif -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fish') == -1 if exists('current_compiler') finish @@ -14,5 +9,3 @@ let current_compiler = 'fish' CompilerSet makeprg=fish\ --no-execute\ % execute 'CompilerSet errorformat='.escape(fish#errorformat(), ' ') - -endif |