vim

For discussion on all things (neo)vim.
2020-10-03T11:10:16.007800Z

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

Olical 2020-10-04T09:09:49.009700Z

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

walterl 2020-10-05T10:01:40.010200Z

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.

walterl 2020-10-05T10:02:08.010400Z

https://docs.cider.mx/cider/config/indentation.html

walterl 2020-10-05T10:02:42.010600Z

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

defndaines 2020-10-05T14:16:25.010800Z

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) 2020-10-03T14:13:07.008500Z

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

👍 2
Olical 2020-10-03T15:11:49.008600Z

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

👍 1
Olical 2020-10-03T15:11:55.008800Z

I just haven't had the time recently

Olical 2020-10-03T15:13:22.009Z

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