mini.completion: Is it feasible to increase locality strength? #380
-
Greetings! An area I want to customize is mini.completion locality since it is presently insufficient in my workflow. In the screenshot provided below, I expected "operation_rule_map" to be the primary suggestion considering its locality, but disappointingly, it does not appear — even after inputting a few extra letters: For comparison, below is a nvim-cmp screenshot, where only the buffer and LSP—which is why I want to switch to a lightweight alternative such as mini.completion—are used as sources: As depicted, the results are sorted based on locality, with "operation_rule_map" promptly appearing as the initial suggestion - something I'd like to achieve with mini.completion. Is there a particular configuration that could enhance this aspect? ☕ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi! What you are seeing in 'mini.completion' screenshot is the fallback builtin completion. By default it is the same as pressing Other than built-in completion or fully user-defined function fully responsible for showing completion menu, nothing else is allowed in |
Beta Was this translation helpful? Give feedback.
Hi!
What you are seeing in 'mini.completion' screenshot is the fallback builtin completion. By default it is the same as pressing
<C-n>
without completion engine. You can try other keys (see:h ins-completion
) infallback_action
config setting. I would assume that'<C-p>'
should work in this case, but it doesn't seem like it. So not sure how to make it happen here (apart from relying on LSP server for more proper suggestions).Other than built-in completion or fully user-defined function fully responsible for showing completion menu, nothing else is allowed in