chore(format): add formatters for bash, markdown, and yaml

pull/1386/head
Juliano Barbosa 9 months ago
parent 73fb8e52a4
commit cbc15919a7
No known key found for this signature in database
GPG Key ID: EB8B440F57360B3D

@ -739,14 +739,17 @@ require('lazy').setup({
} }
end, end,
formatters_by_ft = { formatters_by_ft = {
bash = { 'shellcheck' },
hcl = { 'fmt' }, 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' }, markdown = { 'inject' },
-- --
-- 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 },
terraform = { 'terraform_fmt' },
yaml = { 'yamlfmt' },
}, },
}, },
}, },

Loading…
Cancel
Save