From 72265b942d204a9a8c72ad7b73caf7fc880cc0fd Mon Sep 17 00:00:00 2001 From: Tine Date: Fri, 1 Mar 2024 14:29:59 +0100 Subject: [PATCH] feat: terraform support --- nix/home.nix | 1 + nvim/lua/code_helpers.lua | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/nix/home.nix b/nix/home.nix index 58fd641..d6e9f98 100644 --- a/nix/home.nix +++ b/nix/home.nix @@ -39,6 +39,7 @@ devbox nodePackages.prettier direnv + sqlfluff # Docker docker-compose diff --git a/nvim/lua/code_helpers.lua b/nvim/lua/code_helpers.lua index 32e78d9..e3f9225 100644 --- a/nvim/lua/code_helpers.lua +++ b/nvim/lua/code_helpers.lua @@ -11,6 +11,8 @@ require("copilot").setup({ python = true, css = true, tmpl = true, + tf = true, + terraform = true, }, }) require("copilot_cmp").setup() @@ -220,6 +222,9 @@ require("formatter").setup({ proto = { require("formatter.filetypes.proto").buf_format, }, + terraform = { + require("formatter.filetypes.terraform").terraformfmt, + }, -- Use the special "*" filetype for defining formatter configurations on -- any filetype