diff options
Diffstat (limited to 'ftplugin/nix.vim')
-rw-r--r-- | ftplugin/nix.vim | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/ftplugin/nix.vim b/ftplugin/nix.vim index 900ee683..c80b825a 100644 --- a/ftplugin/nix.vim +++ b/ftplugin/nix.vim @@ -12,11 +12,14 @@ if (exists("b:did_ftplugin")) endif let b:did_ftplugin = 1 - setlocal - \ comments=:# - \ commentstring=#\ %s + \ comments=:# + \ commentstring=#\ %s + \ iskeyword+=- + +if get(g:, 'nix_recommended_style', 1) + setlocal \ shiftwidth=2 \ softtabstop=2 - \ expandtab - \ iskeyword+=- + \ expandtab +endif |