Skip to content

cljfmt-compatible ns form formatting #22

Closed

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?

Activity

  1. axvr commented on May 10, 2022

    @axvr
    Member

    I don't have the time right now to add it myself, but I would definitely accept a patch to add this as an option.

  2. added a commit that references this issue on May 11, 2022
    72c1aeb
  3. jsn commented on Aug 10, 2026

    @jsn
    ContributorAuthor

    Hello, @axvr , it's been 4 years since it was merged, but apparently it's still not in the upstream (vim / nvim runtime files shipped with vim / nvim). Can you please ask upstream if they can update this one?

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions