Skip to content
Discussion options

You must be logged in to vote

Would it be possible to have <c-o> behave as in native autocompletion?

I am afraid the answer to the particular question is "no, if you want to keep using 'omnifunc'". This is because <C-o> key is very hard-coded after <C-x><C-o> is pressed (i.e. 'omnifunc' completion is triggered, which is what 'mini.completion' is doing). As in "it is currently impossible to override in this situation, at all". It is documented in :h i_CTRL-X_CTRL-O and mentioned in the help (although in a slightly different place).

The reason this doesn't happen with built-in completion is because it uses vim.fn.complete() directly. The downside of this is that it won't re-trigger on <BS> and implementing it requires…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@abeldekat
Comment options

abeldekat Apr 8, 2025
Collaborator Author

@echasnovski
Comment options

Answer selected by echasnovski
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