It’s really handy to be able to use set! on dynamic vars from nrepl clients.
They will persist across evaluations, test calls, etc. without the editor providing a specific lever.
Unfortunately, you can only set! vars in a short list.
This middleware allows you to add vars to that list from a running REPL by calling io.dominic.nrepl-bind/try-bind-vars or io.dominic.nrepl-bind/add-bound-var.
Following that, you can call set! to your heart’s content.
The middleware var is io.dominic.nrepl-bind/wrap-bind.
Add this to :middleware, pass it with --middleware or use your editor-specific configuration.