Function: cider-connect-sibling-cljs

cider-connect-sibling-cljs is an autoloaded, interactive and byte-compiled function defined in cider.el.

Signature

(cider-connect-sibling-cljs PARAMS &optional OTHER-REPL)

Documentation

Create a ClojureScript REPL with the same server as OTHER-REPL.

PARAMS is a plist optionally containing :cljs-repl-type (e.g. node, figwheel, shadow, etc).

All other parameters are inferred from the OTHER-REPL. OTHER-REPL defaults to cider-current-repl but in programs can also be a server buffer, in which case a new session for that server is created.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider.el
;;;###autoload
(defun cider-connect-sibling-cljs (params &optional other-repl)
  "Create a ClojureScript REPL with the same server as OTHER-REPL.
PARAMS is a plist optionally containing :cljs-repl-type (e.g. `node',
`figwheel', `shadow', etc).

All other parameters are inferred from the OTHER-REPL.
OTHER-REPL defaults to `cider-current-repl' but in programs can also be a
server buffer, in which case a new session for that server is created."
  (interactive "P")
  (let* ((other-repl (or other-repl (cider-current-repl 'any 'ensure)))
         (other-params (cider--gather-connect-params nil other-repl))
         ;; type-related params from the JVM conn are undesired for a cljs conn:
         (other-params (thread-first other-params (map-delete :repl-type) (map-delete :cljs-repl-type)))
         (ses-name (unless (nrepl-server-p other-repl)
                     (sesman-session-name-for-object 'CIDER other-repl))))
    (cider-nrepl-connect
     (thread-first params
                   (cider--update-do-prompt)
                   (append other-params)
                   (cider--update-cljs-type)
                   (cider--update-cljs-init-function)
                   (plist-put :session-name ses-name)
                   (plist-put :repl-type 'cljs)))))