-
Notifications
You must be signed in to change notification settings - Fork 39
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
Tab
key not usable in insert mode
#61
Comments
You want I currently have them on |
I mean they work, but only for llm.nvim's actions and not for everything else, e.g. |
This is how I define the keymaps: vim.keymap.set("i", accept_keymap, accept_suggestion, { expr = true })
vim.keymap.set("n", accept_keymap, accept_suggestion, { expr = true })
vim.keymap.set("i", dismiss_keymap, dismiss_suggestion, { expr = true })
vim.keymap.set("n", dismiss_keymap, dismiss_suggestion, { expr = true }) in https://github.com/huggingface/llm.nvim/blob/main/lua/llm/keymaps.lua#L25 I'll check how to make it so that it doesn't override other functionalities, let me know if you know the lua to do that. |
So after a little bit of testing I binded accept to |
I think this should work: |
nvim-cmp has a "fallback" functionality. You can find their code here: I use it like this to make it so that |
Using this config:
I am unable to use the
Tab
key in the insert mode when suggestions are on, butTab
works for accepting outputted code. Changing accepting and dismissing keys only made them not usable (in insert mode), andTab
working again.The text was updated successfully, but these errors were encountered: