summaryrefslogtreecommitdiff
path: root/lua/lvim/core/which-key.lua
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2022-02-12 09:17:34 +0100
committerkylo252 <[email protected]>2022-02-12 09:17:34 +0100
commitff9d883f64b75cb36f3164aae9d36a372f8b46d7 (patch)
tree27f496c5d814fde1bb5950f5580ed476f7fa02d1 /lua/lvim/core/which-key.lua
parent2fa176f23fb8dffbafbac6a1f5e34c1f9c79c3f7 (diff)
parent564798b83e40e622fb5c1b6f3803b80f42d092ec (diff)
Merge branch 'rolling'
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",
},
},