Skip to content

CWD/root does not update after changing buffer for the first time #225

@gegoune

Description

@gegoune

I am on main now but it was the same on v2.x branch.

With require('neo-tree').setup() (no custom configuration) neo-tree's CWD (root) is not updating after switching to another repository for the first time.

Follow these steps:

  1. open nvim and some buffer in repository A
  2. open neo-tree, tree is correctly rooted at A's git root
  3. open another buffer from repository B (either using :e B/file or Telescope - effect is the same), tree remains rooted at A's root`, showing content of repository A instead of B
  4. come back to buffer from repository A
  5. come back to buffer from repository B, root is now correctly updated and showing content of repository B

Can you reproduce it?

I am using filesystem for above test but it behaves the same for buffers but does not update at all for git_status.

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