Skip to content

BUG: Layout issues with the Neotree left sidebar and other windows #1553

Open
@mihaifm

Description

@mihaifm

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

.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions