aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Hiar <cody@hiar.ca>2023-03-02 14:07:02 -0700
committerCody Hiar <cody@hiar.ca>2023-03-02 14:07:02 -0700
commit12741e8a6e8c5bbcffae86154b12edd074fb57ff (patch)
tree88540739cbb4c2f26765a9772511b3f1f4e88da6
parentec2fd73bc9a72040daf471c4e51ba16a99de73aa (diff)
add terraform languages server. fix terraform/hcl spacing
-rw-r--r--flake.nix1
-rw-r--r--init.lua2
2 files changed, 3 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index cab6a93..fcc5e7c 100644
--- a/flake.nix
+++ b/flake.nix
@@ -120,6 +120,7 @@
nixfmt
languagetool
lf
+ terraform-ls
]
}
makeWrapper ${myneovim}/bin/nvim $out/bin/nvim --prefix PATH : $BINPATH
diff --git a/init.lua b/init.lua
index b17b046..0b6770e 100644
--- a/init.lua
+++ b/init.lua
@@ -35,6 +35,8 @@ vim.o.tabstop = 4
vim.o.shiftwidth = 0
vim.cmd [[
autocmd Filetype nix setlocal ts=2 sw=2 sts=0 expandtab
+autocmd Filetype terraform setlocal ts=2 sw=2 sts=0 expandtab
+autocmd Filetype hcl setlocal ts=2 sw=2 sts=0 expandtab
]]
vim.o.relativenumber = true
-- Distable word wrap