Fork me on GitHub
#calva
<
2019-12-30
>
David Brear16:12:45

hey guys, happy Monday. I've been digging through all the ways of doing custom indentation for formatting. I have some macros that are getting 1 indentation and the team I'm on wants 2 spaces ie:

(go-try
 (call-function))
should be:
(go-try
  (call-function))
where the ( is under the o in go as opposed to the g has anyone found a good way in calva to customize these indentations?

David Brear16:12:08

I saw that with cljfmt you can use an indentation.edn file but I don't entirely know where this should go or how to get calva to respect it

pez16:12:31

Calva would not respect it, unfortunately. Currently there is no way to customize the indentation. It might be the next thing I fix, though.

👍 2
David Brear17:12:02

oh okay gotcha. thanks for the response Peter! I'm loving Calva by the way

pez18:12:21

You’re welcome!

pez18:12:01

About the indent conf support. I think it should be pretty straightforward to add. And I am on xmas leave from my day job, so there’s hope. 😃

David Brear18:12:42

oh badass. yeah I just got back to my day job and school starts in a few days :face_vomiting: . Otherwise I'd jump on trying to learn how to implement these features myself

dabrazhe19:12:17

Hi. Do I need to restart VSC when chaning calva.prettyPrintingOptions? 'cause I don't see any effect of the setting.

pez19:12:43

It should take effect immediately.