summaryrefslogtreecommitdiff
path: root/lua/lvim/core/which-key.lua
diff options
context:
space:
mode:
authorAbouzar Parvan <[email protected]>2022-02-07 18:22:30 +0100
committerGitHub <[email protected]>2022-02-07 20:52:30 +0330
commit24537be03e3b7668e565fc652f8a0bfdea715652 (patch)
tree0db1de3607f505d6010b2e35ff19ce98f804ba17 /lua/lvim/core/which-key.lua
parent9eb8479b39117783602b1c7a1f1e062b55744c92 (diff)
feat: use bufferline instead of barbar (#2254)
Diffstat (limited to 'lua/lvim/core/which-key.lua')
-rw-r--r--lua/lvim/core/which-key.lua20
1 files changed, 10 insertions, 10 deletions
diff --git a/lua/lvim/core/which-key.lua b/lua/lvim/core/which-key.lua
index 8691a9a6..194cb314 100644
--- a/lua/lvim/core/which-key.lua
+++ b/lua/lvim/core/which-key.lua
@@ -67,30 +67,30 @@ M.config = function()
["w"] = { "<cmd>w!<CR>", "Save" },
["q"] = { "<cmd>q!<CR>", "Quit" },
["/"] = { "<cmd>lua require('Comment.api').toggle_current_linewise()<CR>", "Comment" },
- ["c"] = { "<cmd>BufferClose!<CR>", "Close Buffer" },
+ ["c"] = { "<cmd>bdelete!<CR>", "Close Buffer" },
["f"] = { require("lvim.core.telescope.custom-finders").find_project_files, "Find File" },
["h"] = { "<cmd>nohlsearch<CR>", "No Highlight" },
b = {
name = "Buffers",
- j = { "<cmd>BufferPick<cr>", "Jump" },
+ j = { "<cmd>BufferLinePick<cr>", "Jump" },
f = { "<cmd>Telescope buffers<cr>", "Find" },
- b = { "<cmd>b#<cr>", "Previous" },
- w = { "<cmd>BufferWipeout<cr>", "Wipeout" },
+ b = { "<cmd>BufferLineCyclePrev<cr>", "Previous" },
+ -- w = { "<cmd>BufferWipeout<cr>", "Wipeout" }, -- TODO: implement this for bufferline
e = {
- "<cmd>BufferCloseAllButCurrent<cr>",
- "Close all but current",
+ "<cmd>BufferLinePickClose<cr>",
+ "Pick which buffer to close",
},
- h = { "<cmd>BufferCloseBuffersLeft<cr>", "Close all to the left" },
+ h = { "<cmd>BufferLineCloseLeft<cr>", "Close all to the left" },
l = {
- "<cmd>BufferCloseBuffersRight<cr>",
+ "<cmd>BufferLineCloseRight<cr>",
"Close all to the right",
},
D = {
- "<cmd>BufferOrderByDirectory<cr>",
+ "<cmd>BufferLineSortByDirectory<cr>",
"Sort by directory",
},
L = {
- "<cmd>BufferOrderByLanguage<cr>",
+ "<cmd>BufferLineSortByExtension<cr>",
"Sort by language",
},
},