Fork me on GitHub
#cider
<
2021-02-10
>
jmckitrick12:02:37

If I'm in a cljs file buffer connected to cider, but there's no browser cljs runtime, is there a fallback autocomplete that would work statically?

waffletower20:02:58

I am trying to figure out if the there is a deps.edn accessible hook to start a CIDER friendly nrepl with initialization evaluation (like leiningen injections) via clojure CLI.

waffletower20:02:23

Alex Miller posted this helpful guide to injection like behavior: https://insideclojure.org/2020/02/11/custom-repl/

waffletower20:02:41

But I am having difficulty figuring out how to do this and combine it with the nrepl middleware CIDER depends upon:

waffletower20:02:50

:cider {:extra-deps {nrepl/nrepl {:mvn/version "0.7.0"}
                               refactor-nrepl {:mvn/version "2.5.0"}
                               cider/cider-nrepl {:mvn/version "0.25.1"}}
                   :main-opts ["-m" "nrepl.cmdline"
                               "--middleware" "[refactor-nrepl.middleware/wrap-refactor,cider.nrepl/cider-middleware]"]}

waffletower20:02:06

Is there some facility within nrepl.cmdline to provide an eval hook? Or am I just missing how to combine what Alex suggests with nrepl.cmdline? They seem mutually exclusive to me and don't work through alias chaining, as only the last clojure.main code will be evaluated.