Skip to content

Support formatting like cljfmt's new alignment features #3069

Description

@nhooey

It would be great if Cursive could use cljfmt somehow, or support the new features:

{:align-forms?                    true
 :align-form-columns?             true
 :align-map-columns?              true}

The weavejester/cljfmt Clojure formatter has been updated in the last few weeks to support those new indentation features:

It aligns all function parameter S-expressions on the same level, when they're on separate lines, which makes it much easier to see the control flow.

I currently solve this problem with the File Watchers plugin and set per-project File Watchers for each of the Clojure file types, but keep the Cursive indentation as the first pass. But I have to save the file to format like cljfmt instead of Cursive's default.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions