aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2022-12-20 00:16:09 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2022-12-20 00:54:52 +0100
commitaba2fde5abfcba4d97bce51b7b302137774d581d (patch)
tree9b319be4bb26a397390ba50a0be4190ca5dddfc7
parent452ccfd567f79126e108f69bb7ebca07b5993bdd (diff)
chore: Add CIDER setup for deps
-rw-r--r--.dir-locals.el15
1 files changed, 12 insertions, 3 deletions
diff --git a/.dir-locals.el b/.dir-locals.el
index dd0f300..c550e73 100644
--- a/.dir-locals.el
+++ b/.dir-locals.el
@@ -1,5 +1,14 @@
((nil . ((cider-preferred-build-tool . clojure-cli)
- (cider-shadow-default-options . "app")
- (cider-default-cljs-repl . custom)
(cider-clojure-cli-aliases . "-M:dev")
- (cider-merge-sessions . :project))))
+ (cider-default-cljs-repl . custom)
+ (cider-custom-cljs-repl-init-form
+ . "(do (require '[shadow.cljs.devtools.api :as shadow])
+(require '[shadow.cljs.devtools.server :as server])
+(server/start!)
+(shadow/watch :app)
+(shadow/nrepl-select :app))")
+ (cider-merge-sessions . :project)
+ (eval . (when (boundp 'cider-jack-in-nrepl-middlewares)
+ (make-variable-buffer-local 'cider-jack-in-nrepl-middlewares)
+ (add-to-list 'cider-jack-in-nrepl-middlewares "cider.nrepl/cider-middleware")
+ (add-to-list 'cider-jack-in-nrepl-middlewares "shadow.cljs.devtools.server.nrepl/middleware"))))))