Show selected popupmenu item using virtual text #28608
Labels
completion
Nvim built-in (omni)completion
enhancement
feature request
needs:discussion
For PRs that propose significant changes to some part of the architecture or API
Milestone
Problem
'completeopt'
withoutnoinsert
can be way too intrusive as you can't easily add characters to the completion prefix. But'completeopt'
withnoinsert
is also not optimal as it actually inserts text into the buffer when an item except the first one is selected. Moreover,noinsert
makes it harder to preview the result of picking the first completion item without inserting it unless you do something like<C-n><C-p>
.Expected behavior
It is possible to leverage virtual text for this. We can either:
noinsert
instead of inserting the text. OR,virttext
flag (tentatively named) tocompleteopt
, which will show the selected item using virtual text.The text was updated successfully, but these errors were encountered: