feat: add terraform tools

This commit is contained in:
Adrien Waksberg 2024-10-30 09:32:27 +01:00
parent 64cc7cd63b
commit 04c29f5f0f
3 changed files with 4 additions and 1 deletions

View file

@ -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 {

View file

@ -2,4 +2,5 @@ require("lint").linters_by_ft = {
yaml = { "yamllint" },
ansible = { "ansible_lint" },
markdown = { "markdownlint" },
terraform = { "tflint" },
}

View file

@ -33,6 +33,8 @@ return {
"prettier",
"gopls",
"markdownlint",
"terraformls",
"tflint",
},
},
},