summaryrefslogtreecommitdiffstats
path: root/compiler/fish.vim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/fish.vim')
-rw-r--r--compiler/fish.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/fish.vim b/compiler/fish.vim
index 827ef3b4..9daba2e3 100644
--- a/compiler/fish.vim
+++ b/compiler/fish.vim
@@ -1,7 +1,4 @@
-if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'fish') != -1
- finish
-endif
-
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'fish') == -1
if exists('current_compiler')
finish
endif
@@ -9,3 +6,4 @@ let current_compiler = 'fish'
CompilerSet makeprg=fish\ --no-execute\ %
execute 'CompilerSet errorformat='.escape(fish#errorformat(), ' ')
+endif