This plugin adds a feature to move across buffers to MattesGroeger/vim-bookmarks.
{
"kdnk/bookmarks-cycle-through.nvim",
dependencies = {
"MattesGroeger/vim-bookmarks",
},
}
vim.keymap.set("n", "mm", function()
require("bookmarks-cycle-through").bookmark_toggle()
end)
vim.keymap.set("n", "]b", function()
require("bookmarks-cycle-through").cycle_through({ reverse = false })
end)
vim.keymap.set("n", "[b", function()
require("bookmarks-cycle-through").cycle_through({ reverse = true })
end)
local function bookmark_count_or_index()
return string.format([[๐ %s]], require("bookmarks-cycle-through").bookmark_count_or_index())
require("lualine").setup({
sections = {
lualine_c = {
{ bookmark_count_or_index },
},
},
})
end