From 04c29f5f0f77fc86d6319fc5203287efa97ff817 Mon Sep 17 00:00:00 2001 From: Adrien Waksberg Date: Wed, 30 Oct 2024 09:32:27 +0100 Subject: [PATCH] feat: add terraform tools --- lua/configs/lspconfig.lua | 2 +- lua/configs/nvim-lint.lua | 1 + lua/plugins/init.lua | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/configs/lspconfig.lua b/lua/configs/lspconfig.lua index 9d42591..875e06d 100644 --- a/lua/configs/lspconfig.lua +++ b/lua/configs/lspconfig.lua @@ -7,7 +7,7 @@ local capabilities = configs.capabilities local lspconfig = require "lspconfig" -- if you just want default config for the servers then put them in a table -local servers = { "html", "cssls", "ts_ls", "yamlls", "ansiblels", "bashls", "rls", "gopls" } +local servers = { "html", "cssls", "ts_ls", "yamlls", "ansiblels", "bashls", "rls", "gopls", "terraformls" } for _, lsp in ipairs(servers) do lspconfig[lsp].setup { diff --git a/lua/configs/nvim-lint.lua b/lua/configs/nvim-lint.lua index 9594896..5601588 100644 --- a/lua/configs/nvim-lint.lua +++ b/lua/configs/nvim-lint.lua @@ -2,4 +2,5 @@ require("lint").linters_by_ft = { yaml = { "yamllint" }, ansible = { "ansible_lint" }, markdown = { "markdownlint" }, + terraform = { "tflint" }, } diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 82027b7..20e5985 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -33,6 +33,8 @@ return { "prettier", "gopls", "markdownlint", + "terraformls", + "tflint", }, }, },