radian-software / prescient.el

☄️ Simple but effective sorting and filtering for Emacs.
MIT License
603 stars 25 forks source link

Add support for completion-lazy-hilit #152

Closed minad closed 9 months ago

minad commented 10 months ago

For performance and to reduce completion candidate string allocations, completion styles support lazy highlighting now. This functionality is used by Vertico and Corfu. See https://github.com/oantolin/orderless/blob/b24748093b00b37c3a572c4909f61c08fa27504f/orderless.el#L451-L456 for reference. If completion-lazy-hilit is non-nil highlighting should be deferred, otherwise it should be applied. The customization variable prescient-completion-highlight-matches can be removed from here.

cc @okamsn