fixed which key format for conform nvim

This commit is contained in:
aminnairi
2025-01-05 11:02:57 +01:00
parent 8575a50773
commit 33c2a109d9
@@ -5,16 +5,14 @@ return {
local conform = require("conform")
whichKey.add({
["<leader>f"] = {
name = "Format",
f = {
function()
local currentFileBufferNumber = vim.fn.bufnr("%")
conform.format({ bufnr = currentFileBufferNumber })
end,
"Format the current file",
},
{ "<leader>f", group = "Format" },
{
"<leader>ff",
function()
local currentFileBufferNumber = vim.fn.bufnr("%")
conform.format({ bufnr = currentFileBufferNumber })
end,
desc = "Current File",
},
})
end,