greglook / cljstyle

A tool for formatting Clojure code
Eclipse Public License 1.0
293 stars 39 forks source link

[question] Adding line breaks in defn-like symbols #86

Open svdo opened 2 years ago

svdo commented 2 years ago

Hi!

We have recently started using cljstyle, and we're quite happy with it so far. We're now in the stage where we're tuning the configuration to suit our specific needs.

One thing that comes up quite often, is that there are symbols that are similar to defn, for example Helix defnc, Pathom defresolver, etc. Those take an argument list, just like defn.

Cljstyle puts the defn argument lists on new lines. Is there a way that I can configure cljstyle to treat those other defn-like symbols the same way?

greglook commented 6 months ago

Similar to #60, which I'd definitely like to support in a future version.