Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cljfmt-compatible ns form formatting #22

Closed
jsn opened this issue May 10, 2022 · 1 comment · Fixed by #23
Closed

cljfmt-compatible ns form formatting #22

jsn opened this issue May 10, 2022 · 1 comment · Fixed by #23
Labels
indentation Affects indentation

Comments

@jsn
Copy link
Contributor

jsn commented May 10, 2022

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?

@axvr
Copy link
Member

axvr commented May 10, 2022

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.

@axvr axvr closed this as completed in #23 May 11, 2022
@axvr axvr added the indentation Affects indentation label Jun 23, 2023
@axvr axvr mentioned this issue Feb 3, 2025
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
indentation Affects indentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants