feat(nvim): better next/prev tab keybinds

nixos
Moritz Böhme 2023-09-06 17:49:31 +02:00
parent 6ae954d3c6
commit d3f5d2e9bd
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
1 changed files with 8 additions and 2 deletions

View File

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