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

cfleming 2020-10-14T22:45:26.097100Z

I’m not sure, a couple of people have reported issues with records, I’ll take a look.

1
cfleming 2020-10-14T22:46:05.097300Z

I’ll take a look at that - no-one else has reported anything so I’d be surprised at a problem like that slipping through.