feat: add terraform tools
This commit is contained in:
parent
64cc7cd63b
commit
04c29f5f0f
3 changed files with 4 additions and 1 deletions
|
@ -7,7 +7,7 @@ local capabilities = configs.capabilities
|
||||||
local lspconfig = require "lspconfig"
|
local lspconfig = require "lspconfig"
|
||||||
|
|
||||||
-- if you just want default config for the servers then put them in a table
|
-- 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
|
for _, lsp in ipairs(servers) do
|
||||||
lspconfig[lsp].setup {
|
lspconfig[lsp].setup {
|
||||||
|
|
|
@ -2,4 +2,5 @@ require("lint").linters_by_ft = {
|
||||||
yaml = { "yamllint" },
|
yaml = { "yamllint" },
|
||||||
ansible = { "ansible_lint" },
|
ansible = { "ansible_lint" },
|
||||||
markdown = { "markdownlint" },
|
markdown = { "markdownlint" },
|
||||||
|
terraform = { "tflint" },
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,8 @@ return {
|
||||||
"prettier",
|
"prettier",
|
||||||
"gopls",
|
"gopls",
|
||||||
"markdownlint",
|
"markdownlint",
|
||||||
|
"terraformls",
|
||||||
|
"tflint",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue