From 12741e8a6e8c5bbcffae86154b12edd074fb57ff Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Thu, 2 Mar 2023 14:07:02 -0700 Subject: add terraform languages server. fix terraform/hcl spacing --- flake.nix | 1 + init.lua | 2 ++ 2 files changed, 3 insertions(+) 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 -- cgit v1.2.3