Fork me on GitHub
#vim
<
2020-10-03
>
geraldodev11:10:16

@olical what do you use to format clojure code on your workflow ?

Olical15:10:49

I don't 😅 I've been planning on forking an existing Clojure formatting plugin for a while and getting it to work with Conjure

👍 3
Olical15:10:55

I just haven't had the time recently

Olical15:10:22

I just format by hand and don't find that I have to ever auto format anything (in years of prod work) I found auto formatting things like parinfer actually annoyed me more than helped since it formatted differently to how our team did things

jamesleonis02:10:51

I've used VIM's internal formatter most of the time. I've also used cljfmt frequently as well.

Olical09:10:49

Yeah, sorry when I said I didn't use any I meant == and =- to reindent forms.

walterl10:10:40

This is something I've been wondering about too. The biggest thing that's missing (or, hopefully, what I'm missing) is respecting CIDER's style/indent values.

walterl10:10:42

Hmmm... It shouldn't be hard to use CIDER as equalprg... :thinking_face:

defndaines14:10:25

We use cljfmt to check formatting at the end, but I have found that there’s a misalignment on indentation (one space vs. two on non-special forms). I haven’t figured out how to get either to meet the other’s. But, yeah, just using == and default vim handling when editing.

oxalorg (Mitesh)14:10:07

Hey everyone! I recorded my vim + clojure setup a few days ago. I'm quite new to clojure and had a hard time figuring the basics out. So hopefully this can be of help to someone new to vim + clojure: https://youtu.be/gb58d9-W-kA

👍 6