-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: cmp-nvim "<tab>" mapping clashes with luasnip "<tab>" mapping #44
Comments
Removed the |
Just noting that even after this fix the
Behavior: Hitting tab in insert mode prints out "", since the LazyVim/lua/lazyvim/plugins/coding.lua Line 21 in ed87ba7
It seems that a fix is to override |
On popular request, I've added an example on how to setup supertab behavior with Make sure you updated |
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.9.0-dev-588+g99cf11128
Operating system/version
ubuntu 22.04
Describe the bug
Mapping the
tab
key fornvim-cmp
does not work correctly (mapping taken from here). It freezes the terminal (most likely an infinite loop of the remap), when it should only indent some text. Completion menu navigation works correctly though.I've pinned the problem down to this mapping from the default luasnip config:
LazyVim/lua/lazyvim/plugins/coding.lua
Line 23 in ed87ba7
More specifically, changing the
remap=true
option to something else likenoremap=true
, or deleting it makes things work again.I'm not sure, if this is actually an issue with
nvim-cmp
, or a conflicting setting for the luasnip mapping.Anyway, I guess the fix is easy, unless
remap=true
has some more specific use-cases?Steps To Reproduce
repro.lua
from down below and start withnvim -u repro.lua repro.lua
Expected Behavior
Well, indenting text...
Repro
The text was updated successfully, but these errors were encountered: