Skip to content

[Bug] Buffer is not set as "listed" when edit with "buffer" command in second tab #14

@tuanbass

Description

@tuanbass

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:

  1. Open 2 buffers A and B. Get a buffer number (using ls)
  2. Create a new tab (using tabnew)
  3. in second tab, open buffer A which previously in tab1 using command buffer <bnumber>
  4. Buffer A openned in tab2, but not shown in bufferline, even with always_show_bufferline=true
  5. ls command in tab2 does not show buffer A.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions