greglook / cljstyle

A tool for formatting Clojure code
Eclipse Public License 1.0
293 stars 39 forks source link

Namespace indent-size overrides #73

Open mustangJaro opened 3 years ago

mustangJaro commented 3 years ago

Using this as a reference the indentation for forms within ns are not customizable.

With this configuration:

{:rules
 {:namespaces
  {:indent-size 1}}}

it consistently formats to this style with 2 spaces instead of 1:

(ns format-test
  (:require
    [clojure.set :as set]
    [clojure.string :as str]))