Open Janfel opened 2 years ago
I can probably add something to that effect, but it's unlikely that you'll be able to use "orderless" with SLY as you envision it. SLY uses a "backend" completion style and the normal made-for-Elisp styles don't work well with it. This has been discussed many times in many issues that I am unfortunately too lazy to unearth right now, but it shouldn't be hard, you can follow your own link to land in very similar bug reports and discussions in Eglot.
When passing a function as the
collection
argument toall-completions
/try-completion
/test-completion
, these functions do not automatically filter the “collection” bycompletion-regexp-list
, as they do for all non-function collections. Instead they leave this task to the passed-in function.The collection functions provided by
sly
currently do not respectcompletion-regexp-list
, causing the output ofall-completions
/try-completion
/test-completion
to not respectcompletion-regexp-list
as well.This breaks packages such as orderless, which depend on the output of
all-completions
being filtered bycompletion-regexp-list
. See https://github.com/oantolin/orderless/issues/78 for a similar issue.Rewriting
sly--completion-function-wrapper
to usecomplete-with-action
seems to be an easy way to fix this.