dotfiles/.config/nvim/lua/plugins/conform.lua

23 lines
329 B
Lua
Raw Normal View History

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" },
2024-10-13 23:55:01 +00:00
ruby = { "rufo" },
2024-08-07 05:36:20 +00:00
},
},
}