cursive

Issues at: https://git.io/cursive-issues
reefersleep 2020-10-14T10:13:02.092900Z

Is it possible to configure macro indentations in Cursive? I see the “Intentions > Clojure > Indentation” in Options, but I don’t see any way to affect it.

reefersleep 2020-10-14T10:14:59.094300Z

E.g., I’m using (jdbc/with-db-connection [conn {:datasource d}] (my-long-expression)), and IntelliJ keeps wanting to format it like

(jdbc/with-db-connection [conn {:datasource d}]
                         (my-long-expression))
, when the sensible thing would be
(jdbc/with-db-connection [conn {:datasource d}]
  (my-long-expression))

reefersleep 2020-10-14T10:28:48.094800Z

Even just cond-> wants to be aligned like the first example, when the styleguide says it should be aligned like the second.

reefersleep 2020-10-14T10:29:53.095100Z

(The styleguide = https://github.com/bbatsov/clojure-style-guide#body-indentation )

imre 2020-10-14T11:30:38.096300Z

I believe you have to select 1 to get it formatted the way you want

reefersleep 2020-10-14T11:50:17.096400Z

Thanks a bunch, I’ll have a lok at that!

imre 2020-10-14T11:50:53.096600Z

np mate