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
cmp.mapping.preset.insert() assigns cmp.select_prev_item() to <C-p>, so <C-p> should move the cursor up one position in a completion window. However, it behaves unexpectedly, as described in the "Actual behavior" section below.
Steps to reproduce
I successfully reproduced this in both my host machine (Ubuntu 22.04) and a Docker container (ubuntu:22.04).
Below is the steps to reproduce with a fresh container.
If you are testing in an already set up environment, start with step 3.
Enter ctrl-n several times to move the cursor down.
Enter ctrl-p several times to move the cursor up.
Expected behavior
Each time ctrl-p is pressed, the cursor should move up one item.
Actual behavior
The first time I press ctrl-p, nothing happens.
The second time I press it, the cursor moves up two items.
Thereafter, this is repeated each time I press ctrl-p.
screencast.webm
Additional context
OS: Ubuntu 22.04
Neovim: v0.9.5
The text was updated successfully, but these errors were encountered:
FAQ
Announcement
Minimal reproducible full config
Description
cmp.mapping.preset.insert()
assignscmp.select_prev_item()
to<C-p>
, so<C-p>
should move the cursor up one position in a completion window. However, it behaves unexpectedly, as described in the "Actual behavior" section below.Steps to reproduce
I successfully reproduced this in both my host machine (Ubuntu 22.04) and a Docker container (
ubuntu:22.04
).Below is the steps to reproduce with a fresh container.
If you are testing in an already set up environment, start with step 3.
docker run -it --rm ubuntu:22.04
~/cmp-repro.vim
as above.nvim -u ~/cmp-repro.vim
i
to enter insert mode./
. You'll see thepath
completion window.ctrl-n
several times to move the cursor down.ctrl-p
several times to move the cursor up.Expected behavior
Each time ctrl-p is pressed, the cursor should move up one item.
Actual behavior
The first time I press ctrl-p, nothing happens.
The second time I press it, the cursor moves up two items.
Thereafter, this is repeated each time I press ctrl-p.
screencast.webm
Additional context
OS: Ubuntu 22.04
Neovim: v0.9.5
The text was updated successfully, but these errors were encountered: