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") local conform = require("conform")
whichKey.add({ whichKey.add({
["<leader>f"] = { { "<leader>f", group = "Format" },
name = "Format", {
f = { "<leader>ff",
function() function()
local currentFileBufferNumber = vim.fn.bufnr("%") local currentFileBufferNumber = vim.fn.bufnr("%")
conform.format({ bufnr = currentFileBufferNumber }) conform.format({ bufnr = currentFileBufferNumber })
end, end,
"Format the current file", desc = "Current File",
},
}, },
}) })
end, end,