summaryrefslogtreecommitdiffstats
path: root/ftplugin/nix.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-06-08 12:44:15 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2019-06-08 12:44:15 +0200
commit671078ef6c851b688b63165761cec82f9f6e03f7 (patch)
treeefde30baaf2ca21a09a35e1ccf1d2ff744482d2b /ftplugin/nix.vim
parentaebef2c2e76b88384b1121c237c965e8cf8b3bcb (diff)
downloadvim-polyglot-671078ef6c851b688b63165761cec82f9f6e03f7.tar.gz
vim-polyglot-671078ef6c851b688b63165761cec82f9f6e03f7.zip
Update
Diffstat (limited to 'ftplugin/nix.vim')
-rw-r--r--ftplugin/nix.vim13
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