Fork me on GitHub
#cider
<
2022-05-19
>
richiardiandrea23:05:58

Hi folks, starting to use the refactor-nrepl middleware again, I was wondering how to pass these options from CIDER to it https://github.com/clojure-emacs/refactor-nrepl#configuration Can I just add a key to .nrepl.edn?

vemv06:05:42

If you're on Emacs you can set each clj-refactor.el defcustom in .dir-locals.el Otherwise as the doc says, Configuration settings are passed along with each msg i.e. they're up to the caller to pass with each invocation You can also rebind these dyn vars if you find so more convenient: https://github.com/clojure-emacs/refactor-nrepl/blob/c2f629d82879e12c8976c23b68008bacce72a68b/src/refactor_nrepl/config.clj#L4

richiardiandrea15:05:21

Thank you @U45T93RA6 will try both

richiardiandrea15:05:03

Given these are custom settings on my end probably the defcustoms are the best approach