Skip to content

Instantly share code, notes, and snippets.

@the-frey
Created June 18, 2019 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save the-frey/db76e9269aa80bc2ec775c72e0502cc5 to your computer and use it in GitHub Desktop.
Save the-frey/db76e9269aa80bc2ec775c72e0502cc5 to your computer and use it in GitHub Desktop.
REPL funtimes
;; in ~/.lein/profiles.clj
{:nrepl {:dependencies [[cider/cider-nrepl "0.21.1"]]
:plugins [[cider/cider-nrepl "0.21.1"]
[org.clojure/tools.nrepl "0.2.13"]
[refactor-nrepl "2.4.0" :exclusions [org.clojure/clojure]]]}}
;; to use in terminal
;; $ lein with-profile +nrepl repl
@the-frey
Copy link
Author

Or you can use Ad's approach:

;; in ~/.lein/profiles.clj
{;; a distinct cider-nrepl profile
 :cider-nrepl {:plugins [[cider/cider-nrepl "0.22.0-beta1"]
                         [refactor-nrepl "2.4.0"]]}
 ;; with an alias to always use it when running `lein repl`
 :user {:aliases {"repl" ["with-profile" "+cider-nrepl" "repl"]}}

@the-frey
Copy link
Author

{:nrepl {:dependencies [[cider/cider-nrepl "0.21.1"]]
         :plugins [[cider/cider-nrepl "0.21.1"]
                   [org.clojure/tools.nrepl "0.2.13"]
                   [refactor-nrepl "2.4.0" :exclusions [org.clojure/clojure]]]}
 :pp {:dependencies [[pjstadig/humane-test-output "0.9.0"]]
      :injections [(require 'pjstadig.humane-test-output)
                   (pjstadig.humane-test-output/activate!)]}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment