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