fix(nvim): buffer keybinds

This commit is contained in:
Moritz Böhme 2023-05-02 09:06:54 +02:00
parent 6b79268807
commit b074079484
Signed by: moritz
GPG key ID: 970C6E89EB0547A9

View file

@ -5,6 +5,14 @@ require("which-key").register({
b = { "<cmd>Telescope buffers<cr>", "List buffers" },
d = { "<cmd>bd<cr>", "Delete buffer" },
},
}, { prefix = "<leader>" })
require("which-key").register({
["["] = {
b = { "<cmd>bprevious<cr>", "Previous buffer" },
},
["]"] = {
b = { "<cmd>bnext<cr>", "Next buffer" },
},
})
-- window
@ -17,14 +25,6 @@ require("which-key").register({
d = { "<C-w>c", "Delete window" },
},
}, { prefix = "<leader>" })
require("which-key").register({
["["] = {
b = { "<cmd>bprevious<cr>", "Previous buffer" },
},
["]"] = {
b = { "<cmd>bnext<cr>", "Next buffer" },
},
})
-- fast window move
require("which-key").register({