From 47c44ae248084bcd83e6b917ef0f87e092c66903 Mon Sep 17 00:00:00 2001 From: rebuilt Date: Sun, 25 Jul 2021 13:39:33 +0200 Subject: Move leader keybinding into the whichkey config (#1089) --- lua/core/bufferline.lua | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'lua/core/bufferline.lua') diff --git a/lua/core/bufferline.lua b/lua/core/bufferline.lua index 18d10321..c5677580 100644 --- a/lua/core/bufferline.lua +++ b/lua/core/bufferline.lua @@ -1,27 +1,2 @@ vim.api.nvim_set_keymap("n", "", ":BufferNext", { noremap = true, silent = true }) vim.api.nvim_set_keymap("n", "", ":BufferPrevious", { noremap = true, silent = true }) -vim.api.nvim_set_keymap("n", "c", ":BufferClose", { noremap = true, silent = true }) - -lvim.builtin.which_key.mappings["b"] = { - name = "Buffers", - j = { "BufferPick", "jump to buffer" }, - f = { "Telescope buffers", "Find buffer" }, - w = { "BufferWipeout", "wipeout buffer" }, - e = { - "BufferCloseAllButCurrent", - "close all but current buffer", - }, - h = { "BufferCloseBuffersLeft", "close all buffers to the left" }, - l = { - "BufferCloseBuffersRight", - "close all BufferLines to the right", - }, - D = { - "BufferOrderByDirectory", - "sort BufferLines automatically by directory", - }, - L = { - "BufferOrderByLanguage", - "sort BufferLines automatically by language", - }, -} -- cgit v1.2.3