Function: cider-connect-cljs

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

Signature

(cider-connect-cljs &optional PARAMS)

Documentation

Initialize a ClojureScript connection to an nREPL server.

PARAMS is a plist optionally containing :host, :port, :project-dir and
:cljs-repl-type (e.g. shadow, node, figwheel, etc).
If nil, use the default parameters in cider-connect-default-params or cider-connect-default-cljs-params.

With the prefix argument, prompt for all the parameters regardless of their supplied or default values.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider.el
;;;###autoload
(defun cider-connect-cljs (&optional params)
  "Initialize a ClojureScript connection to an nREPL server.
PARAMS is a plist optionally containing :host, :port, :project-dir and
:cljs-repl-type (e.g. `shadow', `node', `figwheel', etc).
If nil, use the default parameters in `cider-connect-default-params' or
`cider-connect-default-cljs-params'.

With the prefix argument, prompt for all the parameters regardless of
their supplied or default values."
  (interactive "P")
  (cider-nrepl-connect
   (thread-first (or params
                     cider-connect-default-cljs-params
                     cider-connect-default-params)
                 (copy-sequence)
                 (cider--update-project-dir)
                 (cider--update-host-port)
                 (cider--check-existing-session)
                 (cider--update-cljs-type)
                 (cider--update-cljs-init-function)
                 (plist-put :session-name nil)
                 (plist-put :repl-type 'cljs))))