Disable instant menu trigger when on end of line. #566
Replies: 2 comments 8 replies
-
the cmp menu should trigger only when i actually start typing instead of whenever i enter insert mode is what i want to figure out |
Beta Was this translation helpful? Give feedback.
-
I am having the same issue. Here's some additional context (and a thank you in advance). At the end of a line, pressing "a" will activate the cmp window and default to the first suggestion in the list. You can't press Enter to simply create a new line, you will accept the cmp suggestion. Pressing Esc will reset the cursor/mode, so that isn't a workaround. Space bar will dismiss the window, but then you get a trailing space on that line. Steps to reproduce (LazyVim):
-The same situation applies if you already have a trailing space at the end of your line and you try to insert ("i") before the space. Possibly related: I have tried: but none of these seem to make a difference. Thank you! |
Beta Was this translation helpful? Give feedback.
-
Whenever i use
i
ora
to enter insert mode at the end of the line the menu appears instantly causing the item to be accepted instead of being able to go a line below by pressing<CR>
.Anyway to solve this ?
And how are the items in the menu being sorted as it prioritizes Text in the buffer more than the actual responses from LSP or when using
path
cmp.Any help for that is appreciated too.
I've tried using
fuzzy.use_typo_resistance
but that does not seem to be the solution for me.At this point i would rather have the whole buffer text suggestion turned off.
Beta Was this translation helpful? Give feedback.
All reactions