2024-08-07 00:36:20 -05:00
|
|
|
return {
|
|
|
|
"stevearc/conform.nvim",
|
2024-10-13 18:46:54 -05:00
|
|
|
event = { "BufWritePre" },
|
|
|
|
cmd = { "ConformInfo" },
|
|
|
|
keys = {
|
|
|
|
{
|
|
|
|
"<leader>f",
|
|
|
|
|
|
|
|
function()
|
|
|
|
require("conform").format({ async = true })
|
|
|
|
end,
|
|
|
|
mode = "",
|
|
|
|
desc = "Format buffer",
|
|
|
|
},
|
|
|
|
},
|
2024-08-07 00:36:20 -05:00
|
|
|
opts = {
|
|
|
|
formatters_by_ft = {
|
|
|
|
lua = { "stylua" },
|
2024-10-13 18:55:01 -05:00
|
|
|
ruby = { "rufo" },
|
2024-11-06 14:46:00 -06:00
|
|
|
go = { "gofmt" },
|
2024-08-07 00:36:20 -05:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|