What Clojure-Kit actually seems to do is vertically align in all cases, so you end up with
(when-not (condition-fn variable)
(true-fn))
I've had a look at the Clojure-Kit source, but thus far haven't managed to work out where to change this/submit a pull request. I know it's possible, because Cursive follows the documented style (I think it may even have an option to switch between whichever you prefer).
Is it possible to modify the indentation style Clojure-Kit is using, or add an option to switch between them?
Current formatter is just a first-pass naïve implementation of something
that tries to imitate the real thing with almost no configurable options whatsoever.
We're following this community style guide, which seems to be referenced in various places and generally accepted as the standard: https://github.com/bbatsov/clojure-style-guide
As per https://github.com/bbatsov/clojure-style-guide#body-indentation, we were expecting
if
,when
,when-not
etc to indent 2 spaces, i.e.but macro arguments should vertically align, i.e.
What Clojure-Kit actually seems to do is vertically align in all cases, so you end up with
I've had a look at the Clojure-Kit source, but thus far haven't managed to work out where to change this/submit a pull request. I know it's possible, because Cursive follows the documented style (I think it may even have an option to switch between whichever you prefer).
Is it possible to modify the indentation style Clojure-Kit is using, or add an option to switch between them?