Fork me on GitHub
#dev-tooling
<
2024-01-08
>
mauricio.szabo20:01:19

Folks, a question about nREPL completions: when I have compliment on the classpath, will it use it? I know compliment asks for a "context" parameter, do I also have to pass that to nREPL to complete things?

vemv07:01:40

cider-nrepl should be a good code read barebones completions and compliment-based completions are different nrepl ops - there's no automatic upgrade contexts are computed client-side, you can refer to cider (elisp) for an example Hope it helps!

mauricio.szabo19:01:02

I have a hard time reading elisp, but no worries - I already have a completions code on my side, just wanted to be sure that I wasn't doing the wrong thing 🙂. I though there was a possibility of an automatic upgrade, so that's why I asked!

oyakushev11:01:39

If you mean nREPL's basic completion functionality, then it doesn't use Compliment directly. The latest master version of nREPL uses simplified Compliment code (without support for contexts).

bozhidar19:01:01

You can actually instruct nREPL to use compliment if you have it on the classpath via *completion-fn*. Perhaps at some point we’ll change nREPL to pick up compliment automatically, given it doesn’t have much (any?) competition in the completion space these days.

👀 1