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,
|
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…
Reference in New Issue