from cherrycode@lemmy.ml to linux@lemmy.ml on 30 Oct 13:06
https://lemmy.ml/post/21950203
I use neovim in tmux for development and have set up <C-CR> as a keymap for cmp completion. It was working well until just a while ago and I don’t know what happened.
<C-CR> seems to register as a simple <CR> when I’m under tmux and so doesn’t cmp complete in neovim. It’s not a problem with cmp as <C-y> is also bound to that and it does work. It also isn’t a problem with neovim or the terminal emulator itself, as I tried this on foot, alacritty, kitty and gnome-terminal. In all cases, <C-CR> works when not in tmux, but when tmux it doesn’t work. It was working fine just yesterday, and I don’t know why it isn’t now or how to fix it.
Has anyone had this kind of issue or knows how to fix it?
EDIT: Found a fix, though I don’t know why it was working earlier and stopped working suddenly
github.com/tmux/tmux/wiki/Modifier-Keys#extended-…
In tmux.conf, add
set -s extended-keys on set -as terminal-features 'xterm*:extkeys'
threaded - newest
Post tmux.conf
pastebin.com/YhzDpVzP
I don’t think it’s a config issue as I haven’t changed it for months now
Try the verbose version < Credence Clearwater Revival >
Take my upvote < Loving’ Spoonful >