Closed ilan-schemoul closed 3 months ago
+1 on this one
@folke do you have any idea about why the first element is always preselected. I tried to dig into the code and tried different things but didn't succeed there. If not possible to fix easily can I have popmenu only in cmdline popup ? If not possible can I have Neovim's native suggestion menu in the cmdline popup ? (because it's not great when suggestions are on the bottom of the screen and it's really annoying to have the pre-selection bug too)
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Why would it get closed ? Personally I've stopped using cmp. But @folke can say whether he doesn't want to support coq (then add a warning in the code if one loads coq) or whether it should be fixed
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.9.5
Operating system/version
Windows 11 with WSL 2 Ubuntu
Describe the bug
First element of the menu is preselected when I enable popumenu with nui backend even though I but it goes to a newline instead of applying popupmenu suggestion. Very confusing.
set completeopt=menu,preview,noinsert,menuone,noselect
. It's problematic because I use coq and I don't enable the preselect option. So when I see noice.nvim popupmenu I think the first element is selected so I pressDespite the fact the first element is highlighted you have to press tab (first element is still highlighted) and then (enter)
I wish I could just disable popumenu but then in
cmdline
I don't have any popup (not even the native one ?) to see suggestions. It is instead at the bottom of the screen barely readable.Steps To Reproduce
nvim -u init.lua a Run command :COQDeps Restart neovim nvim -u init.lua a type something in the buffer like TEST and then try starting type TES again then the
TEST
will appear. It will be highlighted. Press enter. Instead of the highlighted option it will insert a newline (very confusing).Expected Behavior
Same behaviour as without noice (or noice when we disable popupmenu) : not highlighting the first element
Repro