summaryrefslogtreecommitdiffstats
path: root/ftplugin/nix.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/nix.vim')
-rw-r--r--ftplugin/nix.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/ftplugin/nix.vim b/ftplugin/nix.vim
index c80b825a..40444150 100644
--- a/ftplugin/nix.vim
+++ b/ftplugin/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 filetype plugin
" Language: Nix
" Maintainer: Daiderd Jordan <daiderd@gmail.com>
@@ -23,3 +20,4 @@ if get(g:, 'nix_recommended_style', 1)
\ softtabstop=2
\ expandtab
endif
+endif