Skip to content

Slow in a repo with large working tree #147

@rockyzhang24

Description

@rockyzhang24

Hi, this plugin is awesome. Great ideas on filtering and sources, easy to customize and extend, and very active development. Thank you first.

To reproduce this issue:

  1. Create a bare repo git init --bare $HOME/bare.git
  2. In zshenv, set git env
    export GIT_DIR="$HOME/bare.git"
    export GIT_WORK_TREE="$HOME"
  3. In a new shell, under $HOME, let's create a file, and commit it
    touch file1
    git add file1
    git commit -m "first commit"
  4. Next, we open this file using Neovim. Then open neo-tree via :NeoTreeRevealToggle. Now it freezes there. After around 2~3 seconds, the neo-tree window opens.
  5. Then with neo-tree window open, we modify this file. Finally we save it via :w. After pressing <ENTER>, Neovim freezes again.

It seems that neo-tree fetches the git info synchronously, so Neovim will block in a bare repo with a large working directory. Is it possible to deal with this situation?

Looking forward to your response, and thank you so much.

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