romgrk / barbar.nvim

The neovim tabline plugin.
2.17k stars 82 forks source link

[BUG] - Pinned buffers are disappearing #475

Closed otavioschwanck closed 1 year ago

otavioschwanck commented 1 year ago

image

Video: blink

Only the last pinned buffer appear.

CONFIG:

      require('barbar').setup({
        animation = false,
        hide = {extensions = true},
        icons = {
          -- Configure the base icons on the bufferline.
          buffer_index = false,
          buffer_number = false,
          button = '',
          -- Enables / disables diagnostic symbols
          diagnostics = {
            [vim.diagnostic.severity.ERROR] = {enabled = true, icon = 'ff'},
            [vim.diagnostic.severity.WARN] = {enabled = false},
            [vim.diagnostic.severity.INFO] = {enabled = false},
            [vim.diagnostic.severity.HINT] = {enabled = false},
          },
          filetype = {
            custom_colors = false,
            enabled = true,
          },
          separator = {left = '', right = '▕'},
          modified = {button = '●'},
          pinned = {buffer_index = true, filename = true, button = '', separator = { right = '▕', left = ''} },
          alternate = {filetype = {enabled = false}},
          current = {buffer_index = false},
          inactive = {button = '', separator = {left = '', right = '▕'}},
          visible = {modified = {buffer_number = false}},
        },
        sidebar_filetypes = {
          ['neo-tree'] = {event = 'BufWipeout'},
        },
        exclude_ft = {'netrw'},
        highlight_visible = false,
      })
Iron-E commented 1 year ago

Are you using v1.6.1? / what commit are you on

otavioschwanck commented 1 year ago

Using commit 42c05edb1a1a0bcd9e071134152e60b98c6f6238

Upgraded to last commit (9ad594c1423047ab3f6bde7e3f8b772e32f9776c) Same problem.

Iron-E commented 1 year ago

Alright, I'll check this out as soon as I can.

For a quick fix, you can try downgrading to one of the release candidates for 1.6 (e.g. rc.1)