Description
Did you check docs and existing issues?
- I have read all the docs.
- I have searched the existing issues.
- I have searched the existing discussions.
Neovim Version (nvim -v)
0.10.1
Operating System / Version
Linux
Describe the Bug
The Neotree left sidebar (which is default), causes some layout issues when used in combination with two other plugins that toggle windows at the top and bottom of Neovim. The issue can be replicated without the additional plugins, by splitting windows at the top and bottom.
Screenshots, Traceback
No response
Steps to Reproduce
:Neotree
:botright 15 split
:topleft 15 split
Note that the bottom window has shrunk to fewer than 15 rows. Now close the top window. The bottom window remains shrunk.
Compare this to opening Neotree to the right
:Neotree right
:botright 15 split
:topleft 15 split
The bottom window keeps its original size. When closing the top window, the bottom window retains its original size.
Another way to observe the correct behavior is to open a regular vim split and using loading Neotree with :Neotree current
.
:vs
:Neotree current
:botright 15 split
:topleft 15 split
This issue can happen with a real configuration, for example when using Neotree to the left, ToggleTerm at the bottom and Trouble at the top.
Expected Behavior
:Neotree left
should have the same behavior as :Neotree right
Your Configuration
.