Function: cider--running-local-nrepl-paths

cider--running-local-nrepl-paths is a byte-compiled function defined in cider-endpoint.el.

Signature

(cider--running-local-nrepl-paths)

Documentation

Retrieve project paths of running nREPL servers.

Do it by looping over the open REPL buffers.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-endpoint.el
(defun cider--running-local-nrepl-paths ()
  "Retrieve project paths of running nREPL servers.
Do it by looping over the open REPL buffers."
  (thread-last (buffer-list)
               (seq-filter
                (lambda (b)
                  (string-prefix-p "*cider-repl" (buffer-name b))))
               (seq-map
                (lambda (b)
                  (with-current-buffer b
                    (when-let* ((params (cider--gather-connect-params))
                                (dir (plist-get params :project-dir))
                                (port (plist-get params :port)))
                      (list dir (prin1-to-string port))))))
               (seq-filter #'identity)))