21 lines
538 B
Lua
21 lines
538 B
Lua
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" },
|
|
c = { "clangd-format" },
|
|
},
|
|
},
|
|
},
|
|
}
|