Skip to content

[Bug]: bufferline doesnt appear when opening files via oil.nvim #1017

@onexbash

Description

@onexbash

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

Didn't quite know whether to create an issue here or in the oil.nvim repo, but anyways:

When opening a file with nvim ~/path/to/file The bufferline gets attached and the next files I open via oil filetree are added as tabs perfectly fine.

When opening nvim in a directory and then opening a file via the oil filetree, the bufferline doesnt get attached and every other files I'm opening are not added to the bufferline.

Really weird. I use the "BufReadPost" & "BufNewFile" events for loading bufferline.nvim so I dont get what the problem is. (opening them via oil.nvim should trigger the same events imo).

What did you expect to happen?

Buffers are always attached to the bufferline no matter from where they are opened

Config

return {
  "akinsho/bufferline.nvim",
  event = { "BufReadPost", "BufNewFile" },
  dependencies = { "nvim-tree/nvim-web-devicons" },
  opts = {},
}

Additional Information

No response

commit

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions