summaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2015-12-17 10:47:00 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2015-12-17 10:49:17 +0100
commitad44c4f7a316e798a9354197b20a80eabf280f1a (patch)
treed68b73b60b73d19bf3e83d8e0f807fbae406cffd /ftplugin
parent3c56c1c7cd051cc7ac7cea0ad66748d8afe1a3cb (diff)
downloadvim-polyglot-ad44c4f7a316e798a9354197b20a80eabf280f1a.tar.gz
vim-polyglot-ad44c4f7a316e798a9354197b20a80eabf280f1a.zip
Add nix support, closes #97
Diffstat (limited to '')
-rw-r--r--ftplugin/nix.vim17
1 files changed, 17 insertions, 0 deletions
diff --git a/ftplugin/nix.vim b/ftplugin/nix.vim
new file mode 100644
index 00000000..19d20977
--- /dev/null
+++ b/ftplugin/nix.vim
@@ -0,0 +1,17 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nix') == -1
+
+if exists("b:did_ftplugin")
+ finish
+endif
+let b:did_ftplugin=1
+
+setlocal comments=
+setlocal commentstring=#\ %s
+
+" Nixpkgs indent settings
+setlocal tabstop=2
+setlocal softtabstop=2
+setlocal shiftwidth=2
+setlocal expandtab
+
+endif