-
Notifications
You must be signed in to change notification settings - Fork 54
Description
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 isr !ls
Expected 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 it -
Operating system:
WSL
+arch
-
options:
cmp.setup.cmdline(":", { mapping = cmp.mapping.preset.cmdline(), sources = cmp.config.sources({ { name = "path" }, }, { { name = "cmdline", option = { ignore_cmds = { "Man", "!" }, }, }, }), })