Skip to content

Align vertical forms grouped by non-whitespace lines #378

@kevinmershon

Description

@kevinmershon

The new features :align-binding-columns? :align-form-columns? and :align-map-columns? are a nice start, however unlike CIDER's clojure-align function, let and map forms with whitespace separating logical groups do not use variable indentation.

Actual

(let [short-var                                        true
      much-longer-var-name-that-should-force-alignment true

      some-map                                         {:a            1
                                                        :alphabetical 2}]
    ...)

Expected

(let [short-var                                        true
      much-longer-var-name-that-should-force-alignment true

      some-map {:a            1
                :alphabetical 2}]
    ...)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions