feat: add terraform lsp & lint
This commit is contained in:
parent
dc0e0fa634
commit
aaab5e3b57
3 changed files with 63 additions and 60 deletions
|
@ -4,6 +4,7 @@ local options = {
|
||||||
css = { "prettier" },
|
css = { "prettier" },
|
||||||
html = { "prettier" },
|
html = { "prettier" },
|
||||||
python = { "ruff_format", "ruff_fix", "ruff_organize_imports" },
|
python = { "ruff_format", "ruff_fix", "ruff_organize_imports" },
|
||||||
|
tf = { "tflint", "terraform-ls" },
|
||||||
go = { "goimports", "gofmt" },
|
go = { "goimports", "gofmt" },
|
||||||
json = { "jq" },
|
json = { "jq" },
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
local configs = require "nvchad.configs.lspconfig"
|
local configs = require("nvchad.configs.lspconfig")
|
||||||
configs.defaults()
|
configs.defaults()
|
||||||
|
|
||||||
local servers = {
|
local servers = {
|
||||||
|
@ -17,6 +17,7 @@ local servers = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
zls = {},
|
zls = {},
|
||||||
|
terraformls = {},
|
||||||
|
|
||||||
pyright = {
|
pyright = {
|
||||||
settings = {
|
settings = {
|
||||||
|
|
|
@ -25,6 +25,7 @@ return {
|
||||||
"python",
|
"python",
|
||||||
"typescript",
|
"typescript",
|
||||||
"go",
|
"go",
|
||||||
|
"terraform",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue