feat(nvim): better next/prev tab keybinds

This commit is contained in:
Moritz Böhme 2023-09-06 17:49:31 +02:00
parent 6ae954d3c6
commit d3f5d2e9bd
Signed by: moritz
GPG key ID: 970C6E89EB0547A9

View file

@ -34,11 +34,17 @@ require("which-key").register({
["<tab>"] = {
name = "tab",
["<tab>"] = { "<cmd>tabnew<cr>", "New tab" },
n = { "<cmd>tabnext<cr>", "Next tab" },
p = { "<cmd>tabprevious<cr>", "Previous tab" },
d = { "<cmd>tabclose<cr>", "Close tab" },
},
}, { prefix = "<leader>" })
require("which-key").register({
["["] = {
t = { "<cmd>tabprevious<cr>", "Previous tab" },
},
["]"] = {
t = { "<cmd>tabnext<cr>", "Next tab" },
},
})
-- file
require("which-key").register({