Move plugin keymaps to lazy keys option

This commit is contained in:
Marko Korhonen 2023-11-25 14:13:26 +02:00
parent 68a73c417e
commit 0982ebf334
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
7 changed files with 46 additions and 38 deletions

View file

@ -1,9 +1,11 @@
-- Formatter plugin
return {
"sbdchd/neoformat",
config = function()
require("which-key").register({
f = { "<cmd>Neoformat<CR>", "Format with Neoformat" },
}, { prefix = "<leader>" })
end,
keys = {
{
desc = "Format with Neoformat",
"<leader>f",
"<cmd>Neoformat<cr>",
},
},
}