@@ -66,6 +66,7 @@ offers ways to adjust the indentaion.
6666> The indentation code has recently been rebuilt which included the removal of
6767> the following configuration options:
6868>
69+ > - ` clojure_align_multiline_strings `
6970> - ` clojure_fuzzy_indent `
7071> - ` clojure_fuzzy_indent_blacklist `
7172> - ` clojure_special_indent_words `
@@ -85,43 +86,40 @@ to use. Choose from several common presets:
8586| ` uniform ` | | Indent uniformly to 2 spaces with no alignment (a.k.a. [ _ Tonsky_ indentation] ( https://tonsky.me/blog/clojurefmt/ ) ). |
8687
8788``` vim
88- let g:clojure_indent_style = 'uniform' " Set the default indent style ...
89- let b:clojure_indent_style = 'traditional' " ...or override the default per-buffer.
89+ let g:clojure_indent_style = 'uniform' " Set the default...
90+ let b:clojure_indent_style = 'traditional' " ...or override it per-buffer.
9091```
9192
9293
9394### Indentation rules
9495
95- ` clojure_indent_rules `
96+ > [ !NOTE]
97+ > These options are ignored if an indentation style of "uniform" is selected.
98+
99+ ` clojure_indent_rules ` & ` clojure_fuzzy_indent_patterns `
96100
97101
98102### Multi-line strings
99103
100104Control alignment of _ new_ lines within Clojure multi-line strings and regular
101- expressions with ` clojure_align_multiline_strings ` .
105+ expressions with ` clojure_indent_multiline_strings ` .
102106
103107> [ !NOTE]
104108> Indenting with ` = ` will not alter the indentation within multi-line strings,
105109> as this could break intentional formatting.
106110
107- ``` clojure
108- ; ; let g:clojure_align_multiline_strings = 0 " Default
109- (def default
110- " Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
111- eiusmod tempor incididunt ut labore et dolore magna aliqua." )
112-
113- ; ; let g:clojure_align_multiline_strings = 1
114- (def aligned
115- " Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
116- eiusmod tempor incididunt ut labore et dolore magna aliqua." )
117-
118- ; ; let g:clojure_align_multiline_strings = -1
119- (def traditional
120- " Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
121- eiusmod tempor incididunt ut labore et dolore magna aliqua." )
122- ```
111+ Pick from the following multi-line string indent styles:
112+
113+ | Value | Default | Description |
114+ | -------| ---------| -------------|
115+ | ` standard ` | ✅ | Align to the _ front_ of the ` " ` or ` #" ` delimiter. Ideal for doc-strings. |
116+ | ` pretty ` | | Align to the _ back_ of the ` " ` or ` #" ` delimiter. |
117+ | ` traditional ` | | No indent: align to left edge of file. |
123118
124- There is also a buffer-local (` b: ` ) version of this option.
119+ ``` vim
120+ let g:clojure_indent_multiline_strings = 'pretty' " Set the default...
121+ let b:clojure_indent_multiline_strings = 'traditional' " ...or override it per-buffer.
122+ ```
125123
126124
127125## Code folding
0 commit comments