Move plugin keymaps to lazy keys option
This commit is contained in:
parent
aedf897255
commit
fac0494df8
7 changed files with 46 additions and 38 deletions
|
@ -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>",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue