Fork me on GitHub
#calva
<
2023-06-22
>
Kelvin20:06:44

So :remove-consecutive-blank-lines? is a default setting in cljfmt, but not in Calva (I have to explicitly set it to true in a .cljfmt.edn file). Does Calva use a different set of defaults from vanilla cljfmt?

pez21:06:09

Yes, Calva has its own defaults. They are listed here: https://calva.io/formatting/#providing-configuration-via-a-config-file Which also instructs how to create your own config.

Kelvin21:06:07

Ah, I assumed that was just an example .cljfmt.edn file, not the actual defaults since the documentation wasn’t clear about it

Kelvin21:06:51

I guess the statement “start changing the Calva formatting defaults by pasting the following map” implies that those are the defaults, but it’s only something I got now that you pointed it out

pez21:06:01

It certainly could be made more clear. PR welcome!