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 = {
-- 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 },

Loading…
Cancel
Save