How to get nvim-tree to play nice when deleting the current buffer? #2667
-
I like to use the bufline in my statusline plugin to navigate through buffers in nvim. This mode of working works really well with nvim-tree in a way that doesn't with many other file tree plugins, so props for that. However when I want to delete the current buffer in order to eliminate it from cluttering up the vim buflist, this causes nvimtree to remain and fill up the window, when what I would want is for the next buffer in the list to become active. Probably I can implement some janky workaround, but given that this works perfectly whenever nvimtree is not active, I wonder if there is a slight tweak to functionality we could do inside nvimtree? This is very related to the issue of trying to close nvim ( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
It is indeed very related, almost the same. You can check out this solution. |
Beta Was this translation helpful? Give feedback.
I'm still using the old but good plugin vim-bufkill
See these mapped functions to wipe current or all buffers without closing the window: https://github.com/alex-courtis/arch/blob/d7f5218bc60ced24a8b4dc22d9c11c374d6b8f18/config/nvim/lua/amc/buffers.lua#L117