mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 19:12:13 +02:00
fixed which key format for conform nvim
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user