[mini.completion] possible to disable inserting on selection? #2003
-
Contributing guidelines
Module(s)mini.completion QuestionHi, does anyone know if it's possible to disable inserting on selection of an item? I only want something inserted on enter. Regards |
Beta Was this translation helpful? Give feedback.
Answered by
echasnovski
Sep 12, 2025
Replies: 1 comment
-
In theory should be possible, but I don't think it is a good user experience. The current default behavior of 'mini.completion' is explicitly designed to be as little in the way of user typing as possible by trying to not require explicit item accept. Probably using something like this should work:
Hope this helps. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
echasnovski
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In theory should be possible, but I don't think it is a good user experience. The current default behavior of 'mini.completion' is explicitly designed to be as little in the way of user typing as possible by trying to not require explicit item accept.
Probably using something like this should work:
require('mini.completion').setup()
if 'completeopt' is not set by user before that).<Down>
and<Up>
. These don't affect buffer text. The downside is that they can't be remapped to<C-n>
and<C-p>
(vim/vim#16880), so probably would have to use something else. F…