commit 173c25750ce0554b23e9d615e63882fa294b8bae
parent b25d710f59941a7687038e9826f10a43ea18181d
Author: bdmfegys@duck.com <bdmfegys@duck.com>
Date: Tue, 30 Apr 2024 17:44:42 -0400
whichkey.lua: add conform.nvim format command
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/lua/whichkey.lua b/lua/whichkey.lua
@@ -24,4 +24,7 @@ wk.register({
"<cmd>Mason<cr>",
"Mason",
},
+ f = {
+ function() require("conform").format({ async = true, lsp_fallback = true }) end, "Format buffer"
+ },
}, { prefix = "<leader>" })