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
{{ message }}
Repository navigation
Opencode.nvim completions menu can't be accessed with nvim-cmp #309
Similar to the issue reported by user disrupted in 287, I'm having an issue with the recent LSP completions actually activating. When I hit tab in the input_window, it will insert a literal tab character instead of moving through the completions menu.
EDIT: It looks like I did grab that from the default config options listed in the README, so idk if you feel like that ought to be updated to something different to prevent people from making this mistake— or just remove the 'i' (insert mode) option?
Activity
sudo-tee commentedon Mar 6, 2026
@sei-dwtompkins What is your cmp config?
I just tried it and it worked fine for me.
sei-dwtompkins commentedon Mar 6, 2026
It had been working properly for me before that PR got merged in:
plugins/cmp.lua
sudo-tee commentedon Mar 6, 2026
Thanks for sharing.
If you remove the Tab from the opencode config does it still interfere?
sei-dwtompkins commentedon Mar 6, 2026
It still seems to want to put in the literal
tabinstead of getting into the completions menu.sei-dwtompkins commentedon Mar 7, 2026
I managed to get it working, it was a very strange issue... I had the following configured in opencode's keymaps:
Apparently
<C-i>andTabare interpreted as the same character. So this was overriding theTabkey behavior. TILhttps://unix.stackexchange.com/a/563480
EDIT: It looks like I did grab that from the default config options listed in the README, so idk if you feel like that ought to be updated to something different to prevent people from making this mistake— or just remove the 'i' (insert mode) option?
sudo-tee commentedon Mar 7, 2026
Thanks for the info.
Some terminal effectively use C-i as Tab chars. I remember having issues in the pass.
I will remove this binding as it can cause confusion.
By curiosity which terminal are u using?
sei-dwtompkins commentedon Mar 9, 2026
That was a real rabbit hole, it felt a bit hilarious when that simple change got it working again. These tests were in Ghostty.