feat(nvim): better next/prev tab keybinds
This commit is contained in:
parent
6ae954d3c6
commit
d3f5d2e9bd
1 changed files with 8 additions and 2 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue