feat(bufferline): added keymaps to pin and delete non-pinned buffers. See #218

This commit is contained in:
Folke Lemaitre 2023-02-09 14:37:37 +01:00
parent d61e4bd553
commit 3af91550be
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -44,6 +44,10 @@ return {
{
"akinsho/bufferline.nvim",
event = "VeryLazy",
keys = {
{ "<leader>bp", "<Cmd>BufferLineTogglePin<CR>", desc = "Toggle pin" },
{ "<leader>bP", "<Cmd>BufferLineGroupClose ungrouped<CR>", desc = "Delete non-pinned buffers" },
},
opts = {
options = {
diagnostics = "nvim_lsp",