Fork me on GitHub
#calva
<
2024-05-30
>
gtbono02:05:24

hey folks! is there some configuration in calva for adding dependencies and injections when a Lein REPL is loaded? I have some code that I have in my global lein configuration that installs libraries only for some profiles of my application (basically debug) and I have some configuration like:

{:user
  {:repl
    {:dependencies ["philoskim/debux" x.x.x]
     :injections [(require 'debux)]}}}
*not entirely accurate because I wrote from my phone but just to get the idea.
Is it possible to move it into a Calva configuration in some way? I saw that the jack-in command that calva does already "hijacks" lein and updates this file, how do I include these things without overwriting what I have?

pez06:05:15

There is currently no way to configure extra injections. Maybe you can put https://calva.io/connect-sequences/#custom-command-line to use?

🙌 1