cider

tatut 2024-12-12T09:01:43.365649Z

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?

tatut 2024-12-12T09:02:00.392769Z

and also reuse any stale existing buffers without asking

cjohansen 2024-12-12T09:23:27.091369Z

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")))

cjohansen 2024-12-12T09:25:12.974299Z

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

๐Ÿ‘ 1
tatut 2024-12-12T09:27:16.126939Z

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

a13 2024-12-12T10:47:12.420639Z

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

oyakushev 2024-12-12T12:30:35.481639Z

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

๐ŸŽ‰ 1
tatut 2024-12-12T12:32:51.544479Z

thanks, that did the trick