Fork me on GitHub
#calva
<
2020-04-21
>
hindol12:04:45

Does Calva use a fork of cljfmt?

hindol14:04:17

Which one? I want to create a PR related to custom macros like when-let* which should align the same way as let.

pez14:04:40

Can't that be done via cljfmt indent config?

pez14:04:44

The difference from the main repo is that I have merged in an old PR regarding alignment of map items. I synced in upstream 16 months ago, according to Github. If we update our fork, we should probably merge in upstream again.

pez14:04:41

(But I'm still hoping your fix there should be a configuration thing.)

hindol14:04:45

I mean, I want to add a configuration flag, that will map an unknown form to a known form, thus formatting when-let* the same way as let. Have not thought this through, but I will iterate.

pez14:04:32

Sounds cool. Maybe ask James Reeves if he'd like that in cljfmt?

hindol14:04:13

They are already doing it, but the process is slow. https://github.com/weavejester/cljfmt/pull/77

hindol14:04:03

I mean, cljfmt already has configurable indent, the only thing missing is, customizable vertical alignment.

pez14:04:54

It's that PR that I thought I had merged, and I thught of did, via proxy: https://github.com/weavejester/cljfmt/pull/77#issuecomment-441558335