This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-11
Channels
- # announcements (1)
- # babashka (132)
- # beginners (52)
- # calva (46)
- # clj-kondo (8)
- # cljdoc (17)
- # clojure (13)
- # clojure-australia (1)
- # clojure-dev (3)
- # clojure-europe (4)
- # clojurescript (4)
- # cloverage (1)
- # conjure (22)
- # datomic (9)
- # emacs (2)
- # fulcro (16)
- # leiningen (5)
- # malli (26)
- # off-topic (16)
- # pathom (3)
- # portal (5)
- # reagent (10)
- # reitit (5)
- # rewrite-clj (1)
- # ring (1)
- # shadow-cljs (14)
- # spacemacs (6)
- # tools-deps (10)
- # vim (11)
- # vscode (1)
- # xtdb (10)
hey! just started out playing with Conjure & nvim, quite refreshing after years on Cursive, thank you for your work! the one thing I couldn’t yet figure out is how to go to symbol definition for library functions, ‘gd’ just highlights all the usages in the current buffer: should i install some Cider middleware...?
Thanks for the catch, David! Beat me to it. I moved it off of gd because there were some nuanced cases where people wanted the original which can be very powerful. I felt bad for overriding core vim powers and thought this was a small price to pay.
having different commands for usages and definition is great actually, just couldn’t find it in the docs btw, is there a way to find all symbol usages across the loaded namespaces/source dir?
Not yet, no, a separate refactor plugin or something that did that could be good. Not sure if CIDER has support for it? I don't recall it being a feature. If it does then it's case of integrating it.
Ah good catch! There's two places it's mentioned in the docs and I only fixed one, I've fixed the other on develop
now.
@olical Cider supports it via clj-refactor.el [1], which uses refactor-nrepl middleware [2] [1] https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-find-usages [2] https://github.com/clojure-emacs/refactor-nrepl @matthew.newland thanks! just tested it, and unfortunately it gives a lot of false positives (like when the var with the same name defined in different namespaces) and even searches in strings (now that's weird); i see that it's based on regexes, so that's the limit, but definitely better than nothing 🙂
@olical i’d be happy to help, would be grateful for any pointers on where to start with nvim api & conjure (like for a total vim noob)
I'm not totally sure myself yet, but when I start looking into it I'll shout in the chat 🙂
@fjolne.yngling if you don't mind generating a tags file that admittedly takes time, there is this option: https://github.com/sogaiu/alc.index-defs it uses clj-kondo for analysis and should work in one's dependencies
🙂 fwiw, if you use clj-kondo's hooks api, you may want the version in this branch: https://github.com/sogaiu/alc.index-defs/tree/update-clj-kondo