Replies: 1 comment
-
I don't know about noice, but for cmdline, you need to specify the mode, by default You can wrap it like this, the first argument is cmp.mapping(cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Select }), { 'i', 'c' }) Or like this, the argument is a table where the key is the mode and the value is a function cmp.mapping({
i = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Select }),
c = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Select }),
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Similarly to the mappings we can create in CMP, can we have it globally?
ie - this allows me to select next entry with
<c-j>
instead of<c-n>
while in CMP menus:This mapping however doesn't work in
cmp-cmdline
/noice
. In there only the standard<c-n>
works.So can I set it globally?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions