Skip to content

Bug: netrw buffer for directory appears in tabline buffer list #5

Closed
@salcode

Description

@salcode

How to Recreate

  • Open a file in Neovim
  • Hit - to trigger netrw
  • Navigate to another filename and click Return

Expected Behavior

There should be two buffers in the tabline at the top of the editor, one for each file

Actual Behavior

There are three buffers in the tabline at the top of the editor, one for each file plus one for the directory.

See tpope/vim-vinegar#13

Possible Solution

The vim-vinegar thread includes the suggestion of adding

vim.g.netrw_fastbrowse = 0

If we add this we should:

  • create a file at lua/config/vinegar.lua
  • add the above setting line to this new file
  • load this new file as the config for the vim-vinegar plugin in
    use({ "tpope/vim-vinegar" })

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