-
Notifications
You must be signed in to change notification settings - Fork 47
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
cmp-cmdline causes Neovim to freeze when using ! in command mode #112
Comments
I checked the source code and I don't know if there is a problem here.
Here |
+1 for this. This is why ! is ignored by default (as it takes really long time) I believe. #109 (I opened the issue, btw) can be handeled here, as it is caused by same '! is not ignored by cmp-cmdline when it is not follows : directly'. |
I believe I have run into a similar issue. I added However, I noticed that, when I chain commands using For now, I'll see if I can work around this by adding a custom command that wraps this |
I have the same issue with |
Not a great workaround, but if you add the full names for the command prefix you are trying to ignore with the Dunno if it's possible to improve this by adding another keybind that would utilize a different ignore list or 'ignore' the ignore list, so as to choose when you want to disable completions for I was also unable to adopt this older solution to the current issue: |
I have a solution that shouldn't require an ignores, that I believe is flexible enough to extend in case it still hangs for you, you can delay how many characters it waits for until it does work for you. The key insight I think I was missing for a while, is either After a single character, I found the list was short enough in WSL to be responsive. If it isn't for you, it's possible to change the This is my definition of the cmdline source. {
name = 'cmdline',
trigger_characters = {},
keyword_pattern = [==[\(^[^![:blank:]]*\|[^![:blank:]]\{1,}\)]==],
option = {
ignore_cmds = {},
}
} Why it works: completion is triggered either at the start, or after 1 or more characters that aren't Actually, with a default
Because it delays completion rather than ignores it, my solution also worked for me in this case, no custom command necessary. If it's still too slow, again, changing the The ideal solution plugin code-wise might be to add an |
Probably duplicate of #85. Culprit is Try running this command and see how long it takes.
My guess is under WSL2 (don't have this issue on my mac, only WSL laptop got it), some entries in |
I encountered an issue described in title with the
cmp-cmdline
plugin when using Neovim. The problem occurs when I attempt to execute a shell command using ! in command mode.I have tried disabling the cmp-cmdline plugin, and the issue disappears when the plugin is disabled. This leads me to believe that the problem lies within the cmp-cmdline plugin.
Steps to reproduce:
Install and configure the cmp-cmdline plugin in Neovim.
Enter command mode by pressing :.
Type
r
followed by aspace
.Type
!
to indicate a shell command.Attempt to type the shell command (e.g.,
ls
). that I want to type isExpected behavior:
Neovim should allow me to type the shell command without any freezing or long processing times. The command should be executed immediately when I press Enter.
Actual behavior:
After typing
!
, Neovim freezes and becomes unresponsive. It appears to be stuck in a long processing logic. After waiting for a few minutes, Neovim eventually reads the contents of the ls command, but the freezing and long processing time are unacceptable.Additional information:
Neovim version: 0.9.5
cmp-cmdline version: These is no release published in the
cmp-cmdline
and I’m usinglazy.nvim
to install itOperating system:
WSL
+arch
options:
The text was updated successfully, but these errors were encountered: