You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I toggle a git ignore folders and javascript's node_modules is visible it takes an unusual longer time to quit neovim. I dont mean it only happens with node_modules but tht is my use case. Check the video where I have only nvim-tree as a dependency and I quit neovim when git ignore folders are hidden vs when they are visible.
Screen.Recording.2024-03-23.at.8.47.03.PM.mov
One weird thing is that if I delete the .gitignore file and the node_modules is visible from the start then it quits just as fast as usual. It is only when I toggle the git ignore files from hidden to visible
Screen.Recording.2024-03-23.at.9.50.38.PM.mov
I dont really have any idea why, but let me know if I can help in any way
Itesteditwithoutanyotherpluginvim.g.loaded_netrw=1vim.g.loaded_netrwPlugin=1vim.cmd[[set runtimepath=$VIMRUNTIME]]vim.cmd[[set packpath=/tmp/nvt-min/site]]localpackage_root="/tmp/nvt-min/site/pack"localinstall_path=package_root.."/packer/start/packer.nvim"localfunctionload_plugins()
require("packer").startup {
{
"wbthomason/packer.nvim",
"nvim-tree/nvim-tree.lua",
"nvim-tree/nvim-web-devicons",
-- ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
},
config= {
package_root=package_root,
compile_path=install_path.."/plugin/packer_compiled.lua",
display= { non_interactive=true },
},
}
endifvim.fn.isdirectory(install_path) ==0thenprint"Installing nvim-tree and dependencies."vim.fn.system { "git", "clone", "--depth=1", "https://github.com/wbthomason/packer.nvim", install_path }
endload_plugins()
require("packer").sync()
vim.cmd[[autocmd User PackerComplete ++once echo "Ready!" | lua setup()]]vim.opt.termguicolors=truevim.opt.cursorline=true-- MODIFY NVIM-TREE SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE_G.setup=function()
require("nvim-tree").setup {}
end-- UNCOMMENT this block for diagnostics issues, substituting pattern and cmd as appropriate.-- Requires diagnostics.enable = true in setup.--[[vim.api.nvim_create_autocmd("FileType", { pattern = "lua", callback = function() vim.lsp.start { cmd = { "lua-language-server" } } end,})]]
### Steps to reproduce
1. create a directory and cd into it
2. run `npm init -y` to initialize an empty js project
3. run `npm install {add many packages to have a large node_modules}`
4. add a .gitignore with `node_modules`
5. try quitting neovim after toggling gitignore files vs not and see the quitting difference
### Expected behavior
I expect neovim to quit just as fast even when ignored git files are shown
### Actual behavior
Neovim quits slow when hidden git files are shown
The text was updated successfully, but these errors were encountered:
Description
When I toggle a git ignore folders and javascript's
node_modules
is visible it takes an unusual longer time to quit neovim. I dont mean it only happens withnode_modules
but tht is my use case. Check the video where I have only nvim-tree as a dependency and I quit neovim when git ignore folders are hidden vs when they are visible.Screen.Recording.2024-03-23.at.8.47.03.PM.mov
One weird thing is that if I delete the
.gitignore
file and thenode_modules
is visible from the start then it quits just as fast as usual. It is only when I toggle the git ignore files from hidden to visibleScreen.Recording.2024-03-23.at.9.50.38.PM.mov
I dont really have any idea why, but let me know if I can help in any way
Neovim version
Operating system and version
Macos 14.3.1
Windows variant
No response
nvim-tree version
commit: 707b24a
Clean room replication
The text was updated successfully, but these errors were encountered: