From f34cd1cf0078ed49562f9a256e1c5382e693b175 Mon Sep 17 00:00:00 2001 From: Andy <8334252+acarl005@users.noreply.github.com> Date: Thu, 30 May 2024 09:43:51 -0400 Subject: [PATCH] fix(bufferline-nvim): add bufferline cycle bindings (#1009) Fix bufferline cycle Map `[b` and `]b` to the bufferline-specific calls for cycling buffers. --- .../bars-and-lines/bufferline-nvim/init.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lua/astrocommunity/bars-and-lines/bufferline-nvim/init.lua b/lua/astrocommunity/bars-and-lines/bufferline-nvim/init.lua index 636bb2be8..172c2b952 100644 --- a/lua/astrocommunity/bars-and-lines/bufferline-nvim/init.lua +++ b/lua/astrocommunity/bars-and-lines/bufferline-nvim/init.lua @@ -1,6 +1,19 @@ return { { "akinsho/bufferline.nvim", + dependencies = { + { + "AstroNvim/astrocore", + opts = { + mappings = { + n = { + ["]b"] = { function() require("bufferline.commands").cycle(1) end, desc = "Next buffer" }, + ["[b"] = { function() require("bufferline.commands").cycle(-1) end, desc = "Previous buffer" }, + }, + }, + }, + }, + }, event = "VeryLazy", opts = { options = {