-
Notifications
You must be signed in to change notification settings - Fork 196
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
Having trouble setting up enter as accept key #20
Comments
Having the same problem. This is my config: return {
"saghen/blink.cmp",
lazy = false, -- lazy loading handled internally
dependencies = "rafamadriz/friendly-snippets",
version = "v0.*",
opts = {
keymap = {
show = "<C-space>",
hide = "<C-e>",
accept = "<CR>",
select_prev = { "<Up>", "<C-j>" },
select_next = { "<Down>", "<C-k>" },
show_documentation = {},
hide_documentation = {},
scroll_documentation_up = "<C-b>",
scroll_documentation_down = "<C-f>",
snippet_forward = "<Tab>",
snippet_backward = "<S-Tab>",
},
},
} |
I found the problem, I have nvim-autopairs that uses enter to register pairs, I guess the two mappings get in conflict. return {
"windwp/nvim-autopairs",
event = "InsertEnter",
config = true,
opts = {
disablee_in_macro = false,
map_cr = false,
},
} |
The same problem occurs with |
I don’t use mini.pairs, and I checked the mappings, but there’s nothing mapped for in insert mode, yet does not function as accept. |
Same issue. I'm also using Ideally blink can work alongside this config, perhaps can take a look at what nvim-cmp is doing to work here. |
same thing happening with ultimate-autopair (another auto-pairing plugin), which also maps |
Btw, am I the only one to find weird that Ah nevermind, I just saw there is already #23 |
I'm not able to reproduce but does 5dd7d66 fix the issue for you? |
Hmm actually, @Saghen that seems to be a different issue that existing before I just didn't notice. It works if I do this: (group-|)
;; <Cr>
(group-by|)
;; However, without the space it fails
(group-|)
;; <Cr>
group-by|) I could open a new issue if you like. |
New issue would be great, thanks! |
But, while #20 (comment) <- this issue is solved - This change did break the So in other words, when I am editing with nvim-autopairs then I expect the following behaviour: fn main() {|}
// Press <Cr>
fn main() {
|
} But now as of 5dd7d66 this behaviour is broken. Ideally we can find a way to both allow This behaviour pairing works fine on |
As per title, I'd like to accept the suggestion after pressing enter, but it's not working.
Here's my config:
I've also tried
<cr>
and<Enter>
but nothing seems to workThe text was updated successfully, but these errors were encountered: