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
I have found nvim-cmp behaviour rather intrusive when using :vimgrep. First, cmp is too eager to auto-pop and suggests path when typing the regex pattern in :vimgrep /regex/. It pollutes the screen with completion, which often prevents the user from seeing incremental highlighting in the current buffer. Second, when typing the path argument and using ** (which is a common use case for vimgrep) cmp tries to provide some kind of completion expansion for all files which causes vim to hang up (overall I find the way cmp interacts with ** rather unfortunate, would love to disable this too).
Is there a way too keep the default cmp behaviour with more standard commands (e.g. :tabe <I like path completion here>) but not when inside the regex in vimg /regex/?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
I have found nvim-cmp behaviour rather intrusive when using
:vimgrep
. First, cmp is too eager to auto-pop and suggests path when typing the regex pattern in:vimgrep /regex/
. It pollutes the screen with completion, which often prevents the user from seeing incremental highlighting in the current buffer. Second, when typing the path argument and using**
(which is a common use case for vimgrep) cmp tries to provide some kind of completion expansion for all files which causes vim to hang up (overall I find the way cmp interacts with**
rather unfortunate, would love to disable this too).Is there a way too keep the default cmp behaviour with more standard commands (e.g.
:tabe <I like path completion here>
) but not when inside the regex invimg /regex/
?Thanks for any help!
Beta Was this translation helpful? Give feedback.
All reactions