- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 629
Description
Description
Hi there!
I’ve noticed that after calling certain APIs, such as full-name.lua and Api.node.show_info_popup, a [Scratch] buffer remains in the buffer list. When I open the buffer list using :ls!, I see many [Scratch] buffers, which makes me a bit confused.
I’ve found that some plugins (but not all) also use this approach, but I don’t fully understand the purpose behind it. At the same time, I’m somewhat concerned that if there are a large number of [Scratch] buffers, it might impact performance (though this is just my speculation, and I don’t have actual benchmark data to support it).
This question is more of a discussion threads, so if you don't think it's quite right, I can move it to the discussion area. In any case, have a great life and thanks to everyone in the community for their hard work!
Best wishes!
Activity
alex-courtis commentedon Jan 13, 2025
Many thanks for raising this one - it is a bug and should be fixed.
It's a subset of scratch buffers that persist e.g. help buffer is wiped:
nvim-tree.lua/lua/nvim-tree/help.lua
Line 154 in 077af9f
A pull request to fix this would be most gratefully appreciated, see CONTRIBUTING.md
ngpong commentedon Jan 13, 2025
Absolutely sure 😊. It was a pleasure to work with you and I'll submit it later.
fix(#3045): wipe scratch buffers for full name and show info popups (#…