Skip to content

Nvim-Tree Keeps Creating "Zombie" Buffers? #2383

@eyalz800

Description

@eyalz800

Description

Recently I found that in my workflow there are many unnamed buffers created, I tried to isolate the issue and I believe I came to the conclusion that this is caused by Nvim-Tree:

Here are the steps to repro:

1. $ nvim
2. :NvimTreeOpen
3. :below copen
4. :wincmd J
6. :NvimTreeClose
7. :ls 
8. :NvimTreeOpen
9. :ls

Step 8 here creates a new unnamed buffer as you can see the difference between steps 7 and 9 output.

Neovim version

NVIM v0.9.1
Build type: Release
LuaJIT 2.1.0-beta3

Operating system and version

macOS 11.5

nvim-tree version

920868d

Clean room replication

Just NvimTree installed

Steps to reproduce

1. $ nvim
2. :NvimTreeOpen
3. :below copen
4. :wincmd J
6. :NvimTreeClose
7. :ls 
8. :NvimTreeOpen
9. :ls

Step 8 here creates a new unnamed buffer as you can see the difference between steps 7 and 9 output.

Expected behavior

No additional buffers are created

Actual behavior

Additional buffers are created every time this is done

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreproducedIssue confirmed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions