nvim-cmp-buffer-lines
nvim-cmp-buffer-lines copied to clipboard
cmp dialog quits when inserting the selection
trafficstars
I am facing this issue currently with neovim 0.10.1 and with latest commits of nvim-cmp and this plugin-
https://github.com/user-attachments/assets/97cd00f1-8d8b-4e66-b531-0c7ccff9c3a5
As can be seen in the video, I first type cmp, then, press <C-n> to go to the next selection. However, the cmp dialog box shows only a single option (the second item in the original popup).
In the second line, I press Down arrow key after typing cmp, and then, the dialog box works as expected.
This does not happen for other completion sources.
Relevant config-
["<C-n>"] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Insert }),
["<C-p>"] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Insert }),
["<Down>"] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Select }),
["<Up>"] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Select }),