This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-01-08
Channels
- # beginners (36)
- # calva (13)
- # cider (3)
- # clerk (7)
- # clj-http (2)
- # clj-kondo (10)
- # clojure (20)
- # clojure-europe (14)
- # clojure-nl (1)
- # clojure-norway (26)
- # clojure-uk (5)
- # clojurescript (143)
- # dev-tooling (7)
- # events (1)
- # exercism (1)
- # honeysql (8)
- # hyperfiddle (4)
- # jobs-discuss (15)
- # leiningen (3)
- # lsp (31)
- # off-topic (17)
- # overtone (3)
- # pathom (11)
- # pedestal (11)
- # re-frame (15)
- # reitit (17)
- # releases (1)
- # scittle (2)
- # shadow-cljs (29)
- # squint (1)
- # yamlscript (3)
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?
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!
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!
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).
BTW, you don't need to read Elisp, cider-nrepl is in Clojure: https://github.com/clojure-emacs/cider-nrepl/blob/master/src/cider/nrepl/middleware/complete.clj
I referred to supplying a context https://github.com/clojure-emacs/cider/blob/24b060ab8ac28922b0dddeed104572e98fc8a6ea/cider-completion-context.el