Open KaranveerB opened 2 days ago
Change your terminal emulator (e.g. kitty)
or try
I'm using kitty currently. I also tried adding
vim.keymap.set('n', '<C-;>', function() vim.print("hi") end, { noremap = true })
to the config and <C-;>
defintely works outside of the cmp mapping.
As for your request: Fresh alacritty with no config and <C-;>
with cmp doesn't work but the non-cmp <C-;>
above still works.
<C-_>
seems to never work. In kitty, it just zooms out the terminal, and if I bind it to no_op
in the kitty config, it just sends -
in insert mode. Also doesn't work in alacritty but it sends ^_
in insert mode. If I change the print("hi")
keymap to be for <C-_>
, it still doesn't work.
FAQ
Announcement
Minimal reproducible full config
Description
<C-;>
should confirm the action, but it does not. I'm not sure how many other key combos are affected.On my regular config, I bisected to find the issue is from 2c93d5e.
<C-;>
seems to be a valid mapping for other neovim things so nvim-cmp should accept it too. 19bd8c7 doesn't fix this and the issue is present in the current latest commit 29fb485.This may be an issue with nvim and its implementation of
keytrans
, but I'm busy and being lazy so I hope you'll forgive me for not looking too much more into it for now.Steps to reproduce
Expected behavior
<C-;>
triggers the action it is mapped to (in the mwe,confirm
)Actual behavior
<C-;> doesn't do anything and simply adds a semicolon.
Additional context
No response