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