Skip to content

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

Closed

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" })

Activity

  1. added a commit that references this issue on Oct 30, 2022
    015ad98
  2. added a commit that references this issue on Oct 30, 2022
    de02148
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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