aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Hiar <cody@hiar.ca>2022-08-15 09:38:25 -0600
committerCody Hiar <cody@hiar.ca>2022-08-15 09:38:39 -0600
commitaf8606e7ceb49e234b6e80b9f095d762794a43e6 (patch)
treeb89026ded4c0585dbd564c44553c4f4784af6b03
parentc6fdeb049dd14737156a32028d8348ec0461cc16 (diff)
Set indent for nix files
-rw-r--r--init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 68233bc..cc0491e 100644
--- a/init.lua
+++ b/init.lua
@@ -33,6 +33,9 @@ vim.g.mapleader = ' '
vim.o.expandtab = true
vim.o.tabstop = 4
vim.o.shiftwidth = 0
+vim.cmd [[
+autocmd Filetype nix setlocal ts=2 sw=2 sts=0 expandtab
+]]
vim.o.relativenumber = true
-- Distable word wrap
vim.o.wrap = false