cider 2024-12-12

if thereโ€™s a choice between lein and clojure-cli when starting a REPL, can I force it always go with clojure-cli without asking?

and also reuse any stale existing buffers without asking

I'm sure the first problem can be solved by adding a .dir-locals file at the root of your project, but not quite sure which var you need to set. Here's an example:

((nil
  (cider-clojure-cli-aliases . "-A:dev")
  (cider-default-cljs-repl . figwheel-main)
  (cider-figwheel-main-default-options . ":dev")))

The second can be solved with (cider-reuse-dead-repls 'auto)

๐Ÿ‘ 1

I have clojure-cli as cider-jack-in-default, but it still asks

I have :custom (cider-jack-in-default 'babashka) in my config, and cider-jack-in usually detects project type properly, without asking any questions

Have you tried customizing cider-preferred-build-tool?

๐ŸŽ‰ 1

thanks, that did the trick