@@ -66,6 +66,7 @@ offers ways to adjust the indentaion.
66
66
> The indentation code has recently been rebuilt which included the removal of
67
67
> the following configuration options:
68
68
>
69
+ > - ` clojure_align_multiline_strings `
69
70
> - ` clojure_fuzzy_indent `
70
71
> - ` clojure_fuzzy_indent_blacklist `
71
72
> - ` clojure_special_indent_words `
@@ -85,43 +86,40 @@ to use. Choose from several common presets:
85
86
| ` uniform ` | | Indent uniformly to 2 spaces with no alignment (a.k.a. [ _ Tonsky_ indentation] ( https://tonsky.me/blog/clojurefmt/ ) ). |
86
87
87
88
``` 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.
90
91
```
91
92
92
93
93
94
### Indentation rules
94
95
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 `
96
100
97
101
98
102
### Multi-line strings
99
103
100
104
Control 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 ` .
102
106
103
107
> [ !NOTE]
104
108
> Indenting with ` = ` will not alter the indentation within multi-line strings,
105
109
> as this could break intentional formatting.
106
110
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. |
123
118
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
+ ```
125
123
126
124
127
125
## Code folding
0 commit comments