Is it possible to get same hover documentation (top row) for hiccup form like I do for normal form?
This is what I get for [tab-group …]but when I change it to (tab-group ...) then the hover info is consistent with the signature one (bottom row). And I would like to achieve the same with hiccup forms and avoid seeing preceeding with-let in documentation.
not sure it got it, any chance you provide a small code snippet I can try?
Thank you. When I understand the problem, I'm less provoked 🙂 .
It might be another good “first issue to tackle” if somebody wants / can contribute I guess.
Yes, feel free to create one
Yeah, I get that.
But why is hover different from signature?
In minibuffer I see documentation for html because of it, which is useless when I use some react component. So far I’m solving it by writing it inside () and then changing it to [], or displaying the eldoc buffer as in the screenshot.
I wonder if it shouldn’t be consistent in this case, because div is correctly interpreted as a function with argument.
Yeah,, I think we evolved hover to support that and I forgot to do the same for signature-help
ah yeah, that happens because clojure-lsp tries to find the current fn being called, which is html and not div although hiccup does this magically under the hood, so the problem is that [div is not a function call, but (div is
Sure, when you place cursor on div then the hover info is showing info for some-fn and not for div. Signature info is showing info for div.
(defn div [children] (into [:div] children))
(some-fn [div [:b "Test"]])