summaryrefslogtreecommitdiffstats
path: root/syntax/nix.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/nix.vim')
-rw-r--r--syntax/nix.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/syntax/nix.vim b/syntax/nix.vim
index f67aa4c4..d69f49e0 100644
--- a/syntax/nix.vim
+++ b/syntax/nix.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nix') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'nix') != -1
+ finish
+endif
+
" Vim syntax file
" Language: Nix
" Maintainer: Daiderd Jordan <daiderd@gmail.com>
@@ -196,5 +198,3 @@ hi def link nixWithExprKeyword Keyword
syn sync fromstart
let b:current_syntax = "nix"
-
-endif