What do I need to do if I want to syntax highlight a custom macro defcustom. For some reason it does not do the syntax highlighting in my env.
I added {:lint-as {ns/defcustom clojure.core/defn}} but that was not enough it seems.
Do you have a print? it should color it as a macro
It should color it same as defmethod or defmulti
I tried to look for the documentation how to do it, but I could not find a way
it looks correct to me, so please provide screenshot of how it looks for you
It looks like this:
ah so it's not only syntax highlight, there is a diagnostic error on something , which means the clj-kondo config is not configured properly
I believe that only complains because the something is not used
Yes, that is why it is underscored
weird, it's red
ok
so, almost sure you have LSP semantic tokens disabled
could be the case
you are using emacs only syntax highlight
yes!
make sure you have (setq lsp-semantic-tokens-enable t)
thank you very much!
Unfortunately now and then the syntax gets really messed up
Weird, maybe some issue with lsp-mode
Could he the reason but I did not see this before