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?
Lsp
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.
Alex Miller posted this helpful guide to injection like behavior: https://insideclojure.org/2020/02/11/custom-repl/
But I am having difficulty figuring out how to do this and combine it with the nrepl middleware CIDER depends upon:
: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]"]}
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.