Skip to content

[BUG] The bufferline sometimes cannot work well with offsets #798

@nullptr-yxw

Description

@nullptr-yxw

When I open the neovim by directory, there is a line like this, even though I have set options.offset.test = "File Explorer"
image
And it will disappear when I move my cursor by mouse or keyboard

2023-08-02.13-31-15.mp4

Part of my settings is

offsets = {
    {
        filetype = "NvimTree",
        text = "File Explorer",
        highlight = "Directory",
        text_align = "left",
        separator = true,
    },
},
always_show_bufferline = true,

So is it possible to make the text of that line be "File Explorer", and do not disappear while moving the cursor?
Just like this(barbar.nvim)

2023-08-02.14-09-46.mp4

And there is another problem I have met which might be associated to this.
Sometimes when I close a buffer, the bufferline will not respect the offset

2023-08-02.14-20-47.mp4

Another bufferline plugin barbar.nvim doesn't have this problem as well

2023-08-02.14-23-09.mp4

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