2024-04-13 08:49:11 +00:00
|
|
|
return {
|
|
|
|
{
|
|
|
|
"stevearc/conform.nvim",
|
|
|
|
opts = {
|
|
|
|
format_on_save = {
|
|
|
|
-- These options will be passed to conform.format()
|
|
|
|
timeout_ms = 500,
|
|
|
|
lsp_fallback = true,
|
|
|
|
},
|
|
|
|
formatters = {
|
|
|
|
injected = { options = { ignore_errors = true } },
|
|
|
|
},
|
|
|
|
formatters_by_ft = {
|
|
|
|
lua = { "stylua" },
|
|
|
|
sh = { "shfmt" },
|
2024-05-12 17:38:26 +00:00
|
|
|
c = { "clangd-format" },
|
2024-04-13 08:49:11 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|