Configure conform key binding

This commit is contained in:
Ryan Cavicchioni 2024-10-13 18:46:54 -05:00
parent 4c6de3bb04
commit 24c9878ee7
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

View File

@ -1,5 +1,18 @@
return {
"stevearc/conform.nvim",
event = { "BufWritePre" },
cmd = { "ConformInfo" },
keys = {
{
"<leader>f",
function()
require("conform").format({ async = true })
end,
mode = "",
desc = "Format buffer",
},
},
opts = {
formatters_by_ft = {
lua = { "stylua" },