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,4 +1,5 @@
-- Display possible keybinds
-- Here I have also defined some generic keybinds
-- Plugin specific keybinds are set up in plugin configuration file
return {
"folke/which-key.nvim",
@ -7,12 +8,12 @@ return {
wk.setup()
wk.register({
h = { "<cmd>nohlsearch<CR>", "Turn off search highlight" },
h = { "<cmd>nohlsearch<cr>", "Turn off search highlight" },
}, { prefix = "<leader>" })
wk.register({
["<C-n>"] = { "<cmd>bnext<CR>", "Next buffer" },
["<C-b>"] = { "<cmd>bprevious<CR>", "Previous buffer" },
["<C-n>"] = { "<cmd>bnext<cr>", "Next buffer" },
["<C-b>"] = { "<cmd>bprevious<cr>", "Previous buffer" },
})
-- Exit terminal insert mode with esc