This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-05
Channels
- # announcements (1)
- # babashka (61)
- # babashka-sci-dev (1)
- # beginners (54)
- # biff (17)
- # cider (4)
- # circleci (1)
- # clj-commons (39)
- # clj-kondo (26)
- # cljdoc (40)
- # clojure (41)
- # clojure-europe (32)
- # clojure-norway (4)
- # clojure-portugal (1)
- # clojure-uk (2)
- # clojurescript (59)
- # clr (69)
- # conjure (7)
- # cursive (22)
- # data-science (16)
- # datalevin (1)
- # datomic (19)
- # docker (31)
- # funcool (1)
- # honeysql (6)
- # hoplon (1)
- # hyperfiddle (41)
- # introduce-yourself (1)
- # juxt (2)
- # leiningen (5)
- # nbb (14)
- # nextjournal (38)
- # off-topic (47)
- # polylith (2)
- # rdf (5)
- # re-frame (4)
- # reitit (27)
- # releases (6)
- # scittle (10)
- # shadow-cljs (24)
- # sql (11)
- # squint (1)
- # tools-build (33)
- # tree-sitter (4)
- # vim (39)
Hello everyone, I created a little helper tool that finds all .nrepl-port
files in my projects dir and lists them in the telescope picker. It calls :ConjureConnect
on the selected item. I want to highlight a picker item that I’m already connected to. How to get the current session’s nrepl port number or better nrepl file path via conjure API?
looks like you can do with-con-or-warn
to get the connection, and find the port from there: https://github.com/Olical/conjure/blob/2e7f449d06753f2996e186954e96afc60edd5862/fnl/conjure/client/clojure/nrepl/server.fnl#L35
looks like it also gives the host, so you can make sure it is the current host as well an not a remote host connection
ooh! I've been wanting this for juggling JVM nrepl and shadow-cljs node repls.
this would be a lot nicer than my current workflow of :!cat .shadow-cljs/nrepl.port
, memorize it, :ConjureConnect $port
, with about a 70% memory success rate >_>
(tangentially, :ConjureClientState default|cljs
is awesome for switching between them; I've added <localleader>td
and <ll>tj
bindings for those. it's so slick!)
@US03ZP2F5 thanks, that I was looking for @UCY0GT0QM It is around 40 lines of lua, feel free to grab from my dots https://github.com/armed/dotfiles/blob/master/nvim/lua/config/tools/nrepl-finder.lua