nvim-tree / nvim-tree.lua

A file explorer tree for neovim written in lua
Other
6.98k stars 603 forks source link

Too slow. #518

Closed ghost closed 2 years ago

ghost commented 3 years ago

I don't known why, this plugin gets slow, especially when i open neovim or quit neovim.

saihnii4 commented 3 years ago

I experience a similar issue, Neovim freezes when I decide to save a file and I happen to have nvim-tree open

kyazdani42 commented 3 years ago

i do not experience such issues... could you please provide:

saihnii4 commented 3 years ago

The issue was resolved by disabling the git integration as specified by #389

return require("packer").startup(function() packer.use 'wbthomason/packer.nvim' packer.use 'kyazdani42/nvim-tree.lua' end)

```lua
-- init.lua
require("plugins")
mattbailey commented 3 years ago

so, I am also a user of the fish shell, and this plugin is very slow on startup, writing files, and exiting nvim. It's probably an artifact of the fish shell's integration with git.

Once I set my nvim shell to dash, the problem completely resolved itself:

vim.cmd('set shell=/bin/dash')
ghost commented 3 years ago

so, I am also a user of the fish shell, and this plugin is very slow on startup, writing files, and exiting nvim. It's probably an artifact of the fish shell's integration with git.

Once I set my nvim shell to dash, the problem completely resolved itself:

vim.cmd('set shell=/bin/dash')

Thanks! when i set my shell to zsh or bash, the issue was solved. But, the issue can't solved by @dulguuncodes 's method. @dulguuncodes, Have you solved this issue?

saihnii4 commented 3 years ago

both my method and mattbailey's method worked for me

kyazdani42 commented 3 years ago

yes i've noted that the fish shell gets quite slow with nvim tree. if somebody could share his fish config I'd be happy to do some debugging. I also noticed that my neovim is getting slower with a lot of git changes in a big repo, I'm pretty sure I can improve the performance if I do a bit of a refactoring of the git module so it's done in a job instead of in a system call which is synchronous and blocking.

alfredjophy commented 3 years ago

my config.fish is just some aliases and nvim tree still causes a block when i write a file (usually for a few seconds) but it works fine when my shell is bash.

kyazdani42 commented 2 years ago

closing this in favor of #549