fix(nvim): buffer keybinds

nixos
Moritz Böhme 2023-05-02 09:06:54 +02:00
parent 6b79268807
commit b074079484
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
1 changed files with 8 additions and 8 deletions

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({