Fork me on GitHub
#lsp
<
2023-01-30
>
escherize17:01:18

I’d like to rename a function defined by a custom defn macro — Is there a config setting for that, or what would be a good place to start?

escherize17:01:15

using lsp-rename with the custom macro gives me the error: "Can't rename, no element found."

ericdallo18:01:29

Hum, I think that won't work ATM, not if we could make it work with latest changes on kondo that now understand quoted forms, do you have the macro code so I can take a look?

borkdude19:01:08

if you write a clj-kondo hook that expands into clojure.core/defn then it will work

borkdude19:01:24

or :lint-as if your custom defn permits

escherize15:01:33

Root cause was that It’s supposed to be linted as schema.core/defn, but isn’t. Thanks for the help, youse two, yet again 🙏

👍 2