calva

Tom H. 2025-08-01T05:25:51.531749Z

Hi folks, I'm a new Calva user, when I use Calva Paredit's "slurp forward" or other commands it seems to reformat the surrounding form. This is ok except for how it handles maps, it seems to turning all maps from this:

{:a 1
 :b 2}
to this:
{
 :a 1
 :b 2}
How would I go about turning off that specific behaviour? Or if that's not possible, the reformatting altogether?

2025-08-01T08:48:56.639319Z

Can you paint a fuller picture of how to reproduce that effect? ("Start with a document that contains nothing but... and put the cursor... and issue the command... and actual result is... vs expected result of..."?)

Tom H. 2025-08-01T08:51:16.364089Z

Sure thing. also after looking at the calva formatting docs I imagine it has something to do with my local cljfmt setup, I've jumped into an existing project.

Tom H. 2025-08-01T08:52:14.514769Z

Do you know if it's possible to disable formatting after a paredit command entirely?

pez 2025-08-01T10:54:40.017389Z

It’s not possible to disable post-edit formatting. Also there is no formatter setting that would cause that formatting. Looks totally wrong. Maybe it’s done other extension in play…

Tom H. 2025-08-01T15:04:42.144159Z

I can reproduce it with just split-keypairs-over-multiple-lines? true in cljfmt.edn, no other plugins except Calva enabled (PlantUML is installed but disabled)

Tom H. 2025-08-01T15:04:58.067969Z

Tom H. 2025-08-01T15:05:15.877079Z

Tom H. 2025-08-01T15:06:08.865359Z

then "Calva Paredit: Slurp Sexp Forward"

Tom H. 2025-08-01T15:06:19.708689Z

turns it to

Tom H. 2025-08-01T15:07:16.348589Z

but with split-keypairs-over-multiple-lines? false I get what I expect:

pez 2025-08-01T17:37:43.145609Z

Interesting. I’m guessing it defaults to false, since we haven’t seen it reported before. See if it is reported on cljfmt. There may be a fix we can pull.

👍 1