Neovim/lua/plugins/conform.lua

21 lines
538 B
Lua
Raw Normal View History

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" },
},
},
},
}