Skip to content

bug: indentation is wrong with hide_root_node = true #510

@pysan3

Description

@pysan3

Hi, again.

This is not any urgent issue but I noticed that the indentation is wrong after opening a new directory after the startup.

It is quite hard to explain in words, so please see the GIF below.

Reproduce

local neotree = require("neo-tree")
neotree.setup({
  hide_root_node = true,
  retain_hidden_root_indent = false,
  filesystem = {
    follow_current_file = true,
  },
})
  1. :Neotree toggle<CR>
  2. Cursor focuses at the current file.
  3. Go to a closed directory and open.
  4. The indentations of the files in this directory are wrong.
  5. No problem on directories that were already opened on startup.

neo-tree

  • This does not happen when hide_root_node = false
  • Also noticed that when I focus a different window with the broken directory opened, neo-tree updates and the indentation gets fixed.

Best,
@pysan3

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