From 3af91550be67d9699567727fffcae8aabafc0898 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Thu, 9 Feb 2023 14:37:37 +0100 Subject: [PATCH] feat(bufferline): added keymaps to pin and delete non-pinned buffers. See #218 --- lua/lazyvim/plugins/ui.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/lazyvim/plugins/ui.lua b/lua/lazyvim/plugins/ui.lua index 6b4d4830..9ec11094 100644 --- a/lua/lazyvim/plugins/ui.lua +++ b/lua/lazyvim/plugins/ui.lua @@ -44,6 +44,10 @@ return { { "akinsho/bufferline.nvim", event = "VeryLazy", + keys = { + { "bp", "BufferLineTogglePin", desc = "Toggle pin" }, + { "bP", "BufferLineGroupClose ungrouped", desc = "Delete non-pinned buffers" }, + }, opts = { options = { diagnostics = "nvim_lsp",