Skip to content

Folder structure somewhat collapses on buffer save #948

Closed
@ghost

Description

OS
Arch Linux 5.16.7-zen2-1-zen
Neovim version

NVIM v0.7.0-dev+1012-gef6cedf820
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/sbin/cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions     -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security     -fstack-clash-protection -fcf-protection -Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -DNVIM_TS_HAS_SET_ALLOCATOR -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/main-builder/pkgwork/src/build/config -I/home/main-builder/pkgwork/src/neovim-git/src -I/usr/include -I/home/main-builder/pkgwork/src/build/src/nvim/auto -I/home/main-builder/pkgwork/src/build/include
Compiled by main-builder

Nvim-tree version
master/latest
Problem
https://asciinema.org/a/0kUfPioQKjqgawNnjfUZFvvR2
On a buffer save, the tree structure inside inside the nvim-tree.lua window "collapses" showing the buffer which is closest to the tree root. I would expect nothing to change. I don't think it's a bug, I think I've just misconfigured nvim-tree.lua and I would like some help.
Configuration
https://0x0.st/oX_S.lua

EDIT: Between the recording and the posting of the lua configuration I removed

update_focused_file = {
    enable = true,
},

but I am still able to replicate this.

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