Environment
Lazyvim (https://www.lazyvim.org/)
return {
{
-- asscociate buffer to tab
"tiagovla/scope.nvim",
lazy = false,
config = function() require("scope").setup() end,
keys = { { "<leader>fB", "<cmd>Telescope scope buffers<cr>", desc = "All buffers" } },
},
{ "famiu/bufdelete.nvim" },
{
"akinsho/bufferline.nvim",
opts = {
options = {
always_show_bufferline = true,
numbers = function(opts) return string.format("%s", opts.id) end,
}, -- always show tabs, event if there is only one tab
},
},
}
Reproduces:
- Open 2 buffers A and B. Get a buffer number (using
ls)
- Create a new tab (using
tabnew)
- in second tab, open buffer A which previously in tab1 using command
buffer <bnumber>
- Buffer A openned in tab2, but not shown in bufferline, even with
always_show_bufferline=true
ls command in tab2 does not show buffer A.