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?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..."?)
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.
Do you know if it's possible to disable formatting after a paredit command entirely?
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…
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)
then "Calva Paredit: Slurp Sexp Forward"
turns it to
but with split-keypairs-over-multiple-lines? false I get what I expect:
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.