From 24537be03e3b7668e565fc652f8a0bfdea715652 Mon Sep 17 00:00:00 2001 From: Abouzar Parvan Date: Mon, 7 Feb 2022 18:22:30 +0100 Subject: feat: use bufferline instead of barbar (#2254) --- lua/lvim/core/which-key.lua | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'lua/lvim/core/which-key.lua') 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"] = { "w!", "Save" }, ["q"] = { "q!", "Quit" }, ["/"] = { "lua require('Comment.api').toggle_current_linewise()", "Comment" }, - ["c"] = { "BufferClose!", "Close Buffer" }, + ["c"] = { "bdelete!", "Close Buffer" }, ["f"] = { require("lvim.core.telescope.custom-finders").find_project_files, "Find File" }, ["h"] = { "nohlsearch", "No Highlight" }, b = { name = "Buffers", - j = { "BufferPick", "Jump" }, + j = { "BufferLinePick", "Jump" }, f = { "Telescope buffers", "Find" }, - b = { "b#", "Previous" }, - w = { "BufferWipeout", "Wipeout" }, + b = { "BufferLineCyclePrev", "Previous" }, + -- w = { "BufferWipeout", "Wipeout" }, -- TODO: implement this for bufferline e = { - "BufferCloseAllButCurrent", - "Close all but current", + "BufferLinePickClose", + "Pick which buffer to close", }, - h = { "BufferCloseBuffersLeft", "Close all to the left" }, + h = { "BufferLineCloseLeft", "Close all to the left" }, l = { - "BufferCloseBuffersRight", + "BufferLineCloseRight", "Close all to the right", }, D = { - "BufferOrderByDirectory", + "BufferLineSortByDirectory", "Sort by directory", }, L = { - "BufferOrderByLanguage", + "BufferLineSortByExtension", "Sort by language", }, }, -- cgit v1.2.3