I'm not sure what these settings mean, but it could be related to kondo not "analyzing" these keywords through the path that normally emits them to keyword usages for lsp
It's actually kinda nice having them colored differently than other keywords since they are "different" (at least, the novelty of Clojure 1.13), but I figured it might be an omission so I'd mention it...
that they are colored differently probably also implies that they don't participate in renaming, which may not what you want, e.g. if you renane :foo in {:foo 1} to :foob , the destructuring probably doesn't change?
Not sure what you mean? There's no renaming here:
[db-spec
{:keys [& :amount :rebilling :repeat]
:or {:amount 0 :rebilling false :repeat false}
:all data}]Oh, you mean F2 to rename a symbol in LSP?
Right, if I try to rename :amount in the destructuring, it does not change it, nor in the :or, only everywhere else in the entire project. Ooops.
I've never tried to rename a keyword before 🙂 I didn't realize it would be global!
I'll put that on the list of "Don't do this!" refactorings... I expect it's safe with qualified keywords, but it seems very dangerous for unqualified keywords 😐
(and I seem to recall that was a recent change for LSP?)
correct. but I think this should be fixed in clj-kondo.