-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The plugin can block Neovim for a long time #85
Comments
Hitting this too at the moment, made me think it was an issue with cmp-path: hrsh7th/cmp-path#68 Temporarily working around this by disabling cmp-cmdline on
|
It is possible to get around blocking calls that take a long time. I wrote a autocompletion plugin (https://github.com/girishji/autosuggest.vim) for cmdline-mode completion in vim9script. I solved this problem by adding a timeout to |
hitting this too. I would be happy (enough) with the ability to exclude some paths from cmp-path completion as a work-around (happy to file a feature request under cmp-path if desired) |
This plugin synchronously calls
vim.fn.getcompletion
. When that happens, the entire Neovim is blocked until that call completes. Unfortunately, that call can take a long time in some circumstances. For example, completing:e huge_nfs_directory/
takes a minute on my machine. I suspect that #84 is another example of this.There are a few avenues we could take to remedy this:
vim.fn.getcompletion
. I don't know what alternative there is though.The text was updated successfully, but these errors were encountered: