feat: add terraform lsp & lint

This commit is contained in:
Bogdan Buduroiu 2025-02-27 15:49:51 +08:00
parent dc0e0fa634
commit aaab5e3b57
Signed by: bruvduroiu
GPG key ID: A8722B2334DE9499
3 changed files with 63 additions and 60 deletions

View file

@ -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" },
}, },

View file

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

View file

@ -25,6 +25,7 @@ return {
"python", "python",
"typescript", "typescript",
"go", "go",
"terraform",
}, },
}, },
}, },