chore(tf): added terraform formater

pull/1386/head
Juliano Barbosa 8 months ago
parent f5ad3e2197
commit aaf791cebc
No known key found for this signature in database
GPG Key ID: EB8B440F57360B3D

@ -597,8 +597,8 @@ require('lazy').setup({
local servers = { local servers = {
-- clangd = {}, -- clangd = {},
-- gopls = {}, -- gopls = {},
-- pyright = {}, pyright = {},
-- rust_analyzer = {}, rust_analyzer = {},
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs -- ... 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: -- Some languages (like typescript) have entire language plugins that can be useful:
@ -661,8 +661,11 @@ require('lazy').setup({
'mypy', 'mypy',
'powershell-editor-services', 'powershell-editor-services',
'prettier', 'prettier',
'pyright',
'ruff',
'shellcheck', 'shellcheck',
'stylua', 'stylua',
'tflint',
'yaml-language-server', 'yaml-language-server',
'yamlfix', 'yamlfix',
'yamlfmt', 'yamlfmt',
@ -713,9 +716,11 @@ require('lazy').setup({
} }
end, end,
formatters_by_ft = { formatters_by_ft = {
hcl = { 'fmt' },
lua = { 'stylua' }, lua = { 'stylua' },
-- Conform can also run multiple formatters sequentially -- Conform can also run multiple formatters sequentially
python = { 'isort', 'black' }, python = { 'isort', 'black' },
terraform = { 'terraform_fmt' },
-- --
-- You can use 'stop_after_first' to run the first available formatter from the list -- You can use 'stop_after_first' to run the first available formatter from the list
javascript = { 'prettierd', 'prettier', stop_after_first = true }, javascript = { 'prettierd', 'prettier', stop_after_first = true },

Loading…
Cancel
Save