Skip to content

Commit b4a6f7a

Browse files
committed
Make connection info aware of generic nREPL implementations
1 parent 35f23b0 commit b4a6f7a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cider-connection.el

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,13 @@ about this buffer (like variable `cider-repl-type')."
402402
(plist-get nrepl-endpoint :host)
403403
(plist-get nrepl-endpoint :port)
404404
(cider--babashka-version)
405-
(cider--babashka-nrepl-version))))))
405+
(cider--babashka-nrepl-version)))
406+
(t
407+
(format "%s%s@%s:%s"
408+
(if genericp "" (upcase (concat (symbol-name cider-repl-type) " ")))
409+
(or (cider--project-name nrepl-project-dir) "<no project>")
410+
(plist-get nrepl-endpoint :host)
411+
(plist-get nrepl-endpoint :port))))))
406412

407413

408414
;;; Cider's Connection Management UI

0 commit comments

Comments
 (0)