Skip to content

Tree size resized 50% width when closing buffer with :q or :bd #1258

@ckt114

Description

@ckt114

Description

When opening a file and close that file with :q or :bd and then open another file the tree window size splits into 50% width of the screen. It doesn't keep its original size.

Neovim version

NVIM v0.7.0
Build type: Release
LuaJIT 2.1.0-beta3

Operating system and version

macOS 12.3.1

nvim-tree version

82ec79a

Minimal config

Used the nvt-min.lua file and same behavior.

Steps to reproduce

  1. nvim -nu /tmp/nvt-min.lua
  2. :NVimTreeOpen
  3. Open a file
  4. Close that file buffer with :q or :bd
  5. Open another file
  6. Tree window is resized to 50% of screen

Expected behavior

Tree window to stay the same.

Actual behavior

Tree window resized to 50% of screen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions