diff options
| author | #!/bin/genesis <[email protected]> | 2021-09-03 19:44:03 +0300 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2021-09-03 18:44:03 +0200 | 
| commit | d5d47d4d7a0b7c396f1bddffe8c5eddc355ce60a (patch) | |
| tree | a3322ca19cf81893b7cd61d352e8460b74e972d4 /lua/core | |
| parent | c7aa418609dcc38c98a212ee959ff4bc1c4fa971 (diff) | |
[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 <[email protected]>
Diffstat (limited to 'lua/core')
| -rw-r--r-- | lua/core/which-key.lua | 19 | 
1 files changed, 10 insertions, 9 deletions
| diff --git a/lua/core/which-key.lua b/lua/core/which-key.lua index 8f2f2a5a..5ceffb57 100644 --- a/lua/core/which-key.lua +++ b/lua/core/which-key.lua @@ -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 = { | 
