nvim-neo-tree / neo-tree.nvim

Neovim plugin to manage the file system and other tree like structures.
MIT License
3.38k stars 207 forks source link

High levels of lag when git_status is enabled #616

Open A-Lamia opened 1 year ago

A-Lamia commented 1 year ago

Not sure exactly why but in some project files neo-tree has very high cpu usage around 5-6% and is causing a lot of lag, the only real difference i can tell with one that lags from ones that don't is a lot of unstaged files, about 20 ?

OS: Windows 10

nvim: v0.8.1

git: 2.38.1.windows.1

Log: neo-tree.nvim.log

Original Post: https://github.com/AstroNvim/AstroNvim/issues/1345

Possibly Related Issue: https://github.com/nvim-neo-tree/neo-tree.nvim/issues/609

Video

cseickel commented 1 year ago

It seems like Windows often has weird performance issues, especially with git operations. There is an update to the file scanning system in main right now to make it more asynchronous, and there is a PR to do the same for checking git ignored files: https://github.com/nvim-neo-tree/neo-tree.nvim/pull/621

It's possible those fixes could solve your problem when they are released.