Skip to content

cljfmt-compatible ns form formatting #22

Closed
@jsn

Description

@jsn

Hello,
Currently indent/clojure.vim indents subforms of (ns ...) with 2-spaces, like this:

(ns ncr.nsql.simple
  (:require
    [clojure.string :as str]
    [clojure.core.match :refer [match]]

while the style guide seemingly recommends, and cljfmt indents, the same subforms with 1-space (paren-aligned), like this:

(ns ncr.nsql.simple
  (:require
   [clojure.string :as str]
   [clojure.core.match :refer [match]]

Would you consider accepting a patch that adds optional, off-by-default ability to format those like cljfmt does it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions