[Feature]: Add new which-key command for switching to the last buffer (#1440)

* Add new which-key command for switching to last buffer

* chore(whichkey) Rework buffer descriptions

Co-authored-by: Luc Sinet <luc.sinet@gmail.com>
This commit is contained in:
#!/bin/genesis 2021-09-03 19:44:03 +03:00 committed by GitHub
parent c7aa418609
commit d5d47d4d7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,25 +72,26 @@ M.config = function()
["h"] = { "<cmd>nohlsearch<CR>", "No Highlight" },
b = {
name = "Buffers",
j = { "<cmd>BufferPick<cr>", "jump to buffer" },
f = { "<cmd>Telescope buffers<cr>", "Find buffer" },
w = { "<cmd>BufferWipeout<cr>", "wipeout buffer" },
j = { "<cmd>BufferPick<cr>", "Jump" },
f = { "<cmd>Telescope buffers<cr>", "Find" },
b = { "<cmd>b#<cr>", "Previous" },
w = { "<cmd>BufferWipeout<cr>", "Wipeout" },
e = {
"<cmd>BufferCloseAllButCurrent<cr>",
"close all but current buffer",
"Close all but current",
},
h = { "<cmd>BufferCloseBuffersLeft<cr>", "close all buffers to the left" },
l = {
l = { "<cmd>BufferCloseBuffersLeft<cr>", "Close all - left" },
r = {
"<cmd>BufferCloseBuffersRight<cr>",
"close all BufferLines to the right",
"Close all - right",
},
D = {
"<cmd>BufferOrderByDirectory<cr>",
"sort BufferLines automatically by directory",
"Sort by directory",
},
L = {
"<cmd>BufferOrderByLanguage<cr>",
"sort BufferLines automatically by language",
"Sort by language",
},
},
p = {