Move plugin keymaps to lazy keys option

This commit is contained in:
Marko Korhonen 2023-11-25 14:13:26 +02:00
parent aedf897255
commit fac0494df8
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>",
},
},
}