Skip to content

<CR> on mini.completion #1543

Closed Answered by echasnovski
kwagi asked this question in Q&A
Jan 31, 2025 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

I followed this steps with copy-and-paste this.

But "Enter" key does normal "<CR>" consistently. No select suggested.

Sorry, I don't really understand the issue. Would you mind elaborating a bit? Ideally, record a screencast of the behavior and post it here.

Also, make sure that <CR> Insert mode mapping is not overridden with something else. For example, by 'mini.pairs'. To do that, execute :imap <CR> and confirm that it shows v:lua._G.cr_action() (and not something like v:lua.MiniPairs.cr()). In case it does, take a look in the comment of the pasted code from 'mini.completion' help, and use return MiniPairs.cr() (slightly better than require('mini.pairs').cr()) instead of return keys['…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@echasnovski
Comment options

@kwagi
Comment options

@echasnovski
Comment options

@kwagi
Comment options

@echasnovski
Comment options

Answer selected by echasnovski
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.completion
2 participants