From aba2fde5abfcba4d97bce51b7b302137774d581d Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Tue, 20 Dec 2022 00:16:09 +0100 Subject: chore: Add CIDER setup for deps --- .dir-locals.el | 15 ++++++++++++--- 1 file 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")))))) -- cgit v1.2.3