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