Fork me on GitHub
#calva
<
2020-03-17
>
hindol16:03:49

Hi, how do I get back the old formatter which supported aligning map key values?

pez16:03:54

Doesn’t that work?

hindol17:03:51

The setting is missing now.

pez19:03:45

Checked the new docs?

pez19:03:05

(Not meant in any condescending way, more worried that I have broken something.)

hindol19:03:55

No worries, I actually have not checked the new docs. In the settings view there is a link straight to clj-fmt. There I did not see the option for aligning map items.

hindol19:03:00

But I'll check the docs now.

hindol20:03:27

Oh, it's all there in the docs! Sorry for bothering you. Only thing I wish is the settings view would point to the docs as well, to make it more discoverable.

pez20:03:39

PR? 😃

✔️ 1
hindol03:03:12

Sure, this looks like an easy one.

Brian21:03:41

Is anyone working on a hotkey for bringing in the Clojure docs on whatever function/form you're on? I'm thinking of IntelliJ with Cursive how it'll open a little side panel like this:

pez21:03:30

cmd+k cmd+i exists, is that what you want?

Brian21:03:03

I didn't know about that @pez thank you! Although I wish it loaded examples too as I find those to be very helpful

pez21:03:48

Like loading examples rom http://clojuredocs.org?

Brian21:03:27

Yes exactly

pez21:03:03

Oh, that would be lovely. No one is working with that. hint, hint 😄

Brian21:03:45

Copy! I won't commit myself to it but I imagine it'd be as simple as an api call to clojuredocs and adding text to that window

Brian21:03:59

So maybe a good entry level addition

pez21:03:45

The right place to add it might be in @snoe s clojure-lsp. Which I am hoping to find a way to get into Calva.

pez21:03:33

But, I guess it is easy enough to add in Calva first, and we can figure about how to make it work smoothly with the lsp later.

snoe21:03:59

yeah, lsp does do hover docs from the code, but this isn't the first time I've heard of trying to integrate with clojure-docs for examples