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