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
this is about the only problem I've encountered with this plugin. I take my hat off and congratulate the maintainers on some real robust code you have here.
So I have a single directory with about 1500 files and the whole neovim will freeze and not accept any inputs until all candidates have been fetched. It takes a few seconds to regain control of neovim.
My advice is replacing the while true block that does fs_scandir_next() and instead execute it in a separate thread using something like luv's thread pool work scheduling, probable with some sort of short-circuiting feature.
I can do a PR for this if the maintainers accept that this is within the scope of this package/plugin
The text was updated successfully, but these errors were encountered:
hey, everyone
this is about the only problem I've encountered with this plugin. I take my hat off and congratulate the maintainers on some real robust code you have here.
So I have a single directory with about 1500 files and the whole neovim will freeze and not accept any inputs until all candidates have been fetched. It takes a few seconds to regain control of neovim.
My advice is replacing the
while true
block that doesfs_scandir_next()
and instead execute it in a separate thread using something like luv's thread pool work scheduling, probable with some sort of short-circuiting feature.I can do a PR for this if the maintainers accept that this is within the scope of this package/plugin
The text was updated successfully, but these errors were encountered: