chore(format): add formatters for bash, markdown, and yaml
This commit is contained in:
parent
73fb8e52a4
commit
cbc15919a7
5
init.lua
5
init.lua
|
@ -739,14 +739,17 @@ require('lazy').setup({
|
|||
}
|
||||
end,
|
||||
formatters_by_ft = {
|
||||
bash = { 'shellcheck' },
|
||||
hcl = { 'fmt' },
|
||||
lua = { 'stylua' },
|
||||
-- Conform can also run multiple formatters sequentially
|
||||
python = { 'isort', 'black' },
|
||||
terraform = { 'terraform_fmt' },
|
||||
markdown = { 'inject' },
|
||||
--
|
||||
-- You can use 'stop_after_first' to run the first available formatter from the list
|
||||
javascript = { 'prettierd', 'prettier', stop_after_first = true },
|
||||
terraform = { 'terraform_fmt' },
|
||||
yaml = { 'yamlfmt' },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue