Skip to content

Commit

Permalink
fix(bufferline-nvim): add bufferline cycle bindings (#1009)
Browse files Browse the repository at this point in the history
Fix bufferline cycle

Map `[b` and `]b` to the bufferline-specific calls for cycling buffers.
  • Loading branch information
acarl005 authored May 30, 2024
1 parent b85974c commit f34cd1c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lua/astrocommunity/bars-and-lines/bufferline-nvim/init.lua
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down

0 comments on commit f34cd1c

Please sign in to comment.