Open
Description
Problem
When there's just 1 window opened along with nvimtree, then deleting its file from tree, would make nvimtree become fullscreen
Desired behavior
Nvimtree should open unamed buf ( enew ) and then delete, this will maintain the win layout!
actions = {
remove_file = {
open_unamed_buf = true,
},
},
Possible solutions with edgecases
The code must be run only when the user presses "y"
Case 1
If there's just 1 listed buffer and its the active window
- Add empty buffer i.e enew
- delete