2023-11-18 02:27:14 +02:00
|
|
|
-- Display possible keybinds
|
|
|
|
-- Plugin specific keybinds are set up in plugin configuration file
|
|
|
|
return {
|
|
|
|
"folke/which-key.nvim",
|
|
|
|
config = function()
|
|
|
|
local wk = require("which-key")
|
|
|
|
wk.setup({})
|
2023-06-27 12:39:51 +03:00
|
|
|
|
2023-11-18 02:27:14 +02:00
|
|
|
wk.register({
|
|
|
|
h = { "<cmd>nohlsearch<CR>", "Turn off search highlight" },
|
|
|
|
}, { prefix = "<leader>" })
|
2023-06-27 12:39:51 +03:00
|
|
|
|
2023-11-18 02:27:14 +02:00
|
|
|
wk.register({
|
|
|
|
["<C-n>"] = { "<cmd>bnext<CR>", "Next buffer" },
|
|
|
|
["<C-b>"] = { "<cmd>bprevious<CR>", "Previous buffer" },
|
|
|
|
})
|
2023-06-27 12:39:51 +03:00
|
|
|
|
2023-11-18 02:27:14 +02:00
|
|
|
-- Exit terminal insert mode with esc
|
|
|
|
vim.keymap.set("t", "<Esc>", "<C-\\><C-n>", {})
|
|
|
|
end,
|
|
|
|
}
|