19 lines
381 B
Lua
19 lines
381 B
Lua
return {
|
|
"stevearc/conform.nvim",
|
|
opts = {
|
|
notify_on_error = false,
|
|
format_on_save = function(bufnr)
|
|
local disable_filetypes = {}
|
|
return {
|
|
timeout_ms = 500,
|
|
lsp_fallback = not disable_filetypes[vim.bo[bufnr].filetype],
|
|
}
|
|
end,
|
|
formatters_by_ft = {
|
|
c = { "clang-format" },
|
|
go = { "gofumpt", "goimports_reviser" },
|
|
lua = { "stylua" },
|
|
},
|
|
},
|
|
}
|