|
|
@ -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' },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|