feat: Add formatter configuration for Rust in init.lua

pull/1386/head
Juliano Barbosa 8 months ago committed by Hypera User (aider)
parent 8f4791e72a
commit 78e39017e0
No known key found for this signature in database
GPG Key ID: EB8B440F57360B3D

@ -831,16 +831,17 @@ require('lazy').setup({
}
end,
formatters_by_ft = {
--
-- Conform can also run multiple formatters sequentially
-- You can use 'stop_after_first' to run the first available formatter from the list
bash = { 'shellcheck' },
hcl = { 'hclfmt' },
go = { 'goimports', 'gofumpt' },
hcl = { 'hclfmt' },
javascript = { 'prettierd', 'prettier', stop_after_first = true },
lua = { 'stylua' },
-- Conform can also run multiple formatters sequentially
python = { 'isort', 'black' },
markdown = { 'inject' },
--
-- You can use 'stop_after_first' to run the first available formatter from the list
javascript = { 'prettierd', 'prettier', stop_after_first = true },
python = { 'isort', 'black' },
rust = { 'rustfmt', lsp_format = 'fallback' },
terraform = { 'terraform_fmt' },
yaml = { 'yamlfmt' },
},

Loading…
Cancel
Save