From aaf791cebce52a01ac3001882f01418c629fd76d Mon Sep 17 00:00:00 2001 From: Juliano Barbosa Date: Thu, 22 Aug 2024 16:32:46 -0300 Subject: [PATCH] chore(tf): added terraform formater --- init.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 0d2f3a6c..0c824aeb 100644 --- a/init.lua +++ b/init.lua @@ -597,8 +597,8 @@ require('lazy').setup({ local servers = { -- clangd = {}, -- gopls = {}, - -- pyright = {}, - -- rust_analyzer = {}, + pyright = {}, + rust_analyzer = {}, -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs -- -- Some languages (like typescript) have entire language plugins that can be useful: @@ -661,8 +661,11 @@ require('lazy').setup({ 'mypy', 'powershell-editor-services', 'prettier', + 'pyright', + 'ruff', 'shellcheck', 'stylua', + 'tflint', 'yaml-language-server', 'yamlfix', 'yamlfmt', @@ -713,9 +716,11 @@ require('lazy').setup({ } end, formatters_by_ft = { + hcl = { 'fmt' }, lua = { 'stylua' }, -- Conform can also run multiple formatters sequentially python = { 'isort', 'black' }, + terraform = { 'terraform_fmt' }, -- -- You can use 'stop_after_first' to run the first available formatter from the list javascript = { 'prettierd', 'prettier', stop_after_first = true },