Unsure if I should post this here or in #CPABC1H61, but I just discovered clj-kondo.hooks-api/reg-keyword!. This is an awesome feature and for anyone who does not know what it is, it gives you goto-definition-functionality on keywords!
If you have a concept in your codebase that is "defined" by a keyword, such as:
(command/define
{:command/kind :commands/create-order
,,,})
;; Somewhere else
(execute-command
{:command/kind :commands/create-order ;; <- cursor here
:command/data {,,,}})
You can configure the keyword to have goto-definition-capabilities with the api above.
I feel like this feature should be spotlighted or at least have a greater discoverability 🔦 Perhaps more relevant to document it in clojure-lspit doesn't strictly have to be "defined" by a keyword, as long as the references to the macro are keywords. E.g. something like (def-my-macro some-symbol ...) can register :some-symbol to point to it.