From 671078ef6c851b688b63165761cec82f9f6e03f7 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sat, 8 Jun 2019 12:44:15 +0200 Subject: Update --- ftplugin/nix.vim | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'ftplugin/nix.vim') 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 -- cgit v1.2.3