@@ -53,7 +53,7 @@ call s:plugin.flags.autopep8_executable.AddCallback(
53
53
54
54
" "
55
55
" The path to the clang-format executable. String, list, or callable that
56
- " takes no args and returns a string or a list.
56
+ " takes no args and returns a string or a list with command line arguments .
57
57
call s: plugin .Flag (' clang_format_executable' , ' clang-format' )
58
58
" Invalidate cache of detected clang-format version when this is changed,
59
59
" regardless of {value} arg.
@@ -73,7 +73,8 @@ call s:plugin.Flag('clang_format_style', 'file')
73
73
call s: plugin .Flag (' gofmt_executable' , ' gofmt' )
74
74
75
75
" "
76
- " The path to the dartfmt executable. Either a list or a string.
76
+ " The path to the dartfmt executable. String, list, or callable that takes no
77
+ " args and returns a string or a list with command line arguments.
77
78
call s: plugin .Flag (' dartfmt_executable' , [' dart' , ' format' ])
78
79
79
80
@@ -82,7 +83,8 @@ call s:plugin.Flag('dartfmt_executable', ['dart', 'format'])
82
83
call s: plugin .Flag (' js_beautify_executable' , ' js-beautify' )
83
84
84
85
" "
85
- " The path to the mix executable for Elixir.
86
+ " The path to the mix executable for Elixir. String, list, or callable that
87
+ " takes no args and returns a string or a list with command line arguments.
86
88
call s: plugin .Flag (' mix_executable' , ' mix' )
87
89
88
90
" "
@@ -147,9 +149,10 @@ call s:plugin.Flag('jsonnetfmt_executable', 'jsonnetfmt')
147
149
call s: plugin .Flag (' google_java_executable' , ' google-java-format' )
148
150
149
151
" "
150
- " The path to the ktfmt executable with args, as a list. The default value
151
- " assumes there is a wrapper script named `ktfmt`. Without such a script, this
152
- " will generally have the form:
152
+ " The path to the ktfmt executable with args. String, list, or callable that
153
+ " takes no args and returns a string or a list with command line arguments.
154
+ " The default value assumes there is a wrapper script named `ktfmt`. Without
155
+ " such a script, this will generally have the form:
153
156
" `ktfmt_executable=java,-jar,/path/to/ktfmt-VERSION-jar-with-dependencies.jar`
154
157
"
155
158
" Note that range formatting is not fully supported, with a feature request at
@@ -159,15 +162,15 @@ call s:plugin.Flag('google_java_executable', 'google-java-format')
159
162
call s: plugin .Flag (' ktfmt_executable' , [' ktfmt' ])
160
163
161
164
" "
162
- " Command line arguments to feed shfmt. Either a list or callable that
163
- " takes no args and returns a list with command line arguments. By default, uses
164
- " the Google's style.
165
+ " Command line arguments to feed shfmt. String, list, or callable that
166
+ " takes no args and returns a string or a list with command line arguments.
167
+ " By default, uses the Google style.
165
168
" See https://github.com/mvdan/sh for details.
166
169
call s: plugin .Flag (' shfmt_options' , [' -i' , ' 2' , ' -sr' , ' -ci' ])
167
170
168
171
" "
169
172
" The path to the shfmt executable. String, list, or callable that
170
- " takes no args and returns a string or a list.
173
+ " takes no args and returns a string or a list with command line arguments .
171
174
call s: plugin .Flag (' shfmt_executable' , ' shfmt' )
172
175
173
176
" "
@@ -191,8 +194,9 @@ endfunction
191
194
192
195
" "
193
196
" The path to the prettier executable. String, list, or callable that
194
- " takes no args and returns a string or a list. The default uses npx if
195
- " available, so that the repository-local prettier will have priority.
197
+ " takes no args and returns a string or a list with command line arguments.
198
+ " The default uses npx if available, so that the repository-local prettier
199
+ " will have priority.
196
200
call s: plugin .Flag (' prettier_executable' , function (' s:LookupPrettierExecutable' ))
197
201
198
202
" Invalidate cache of detected prettier availability whenever
@@ -218,9 +222,9 @@ function s:ZprintOptions() abort
218
222
endfunction
219
223
220
224
" "
221
- " Command line arguments to feed zprint. Either a list or callable that takes no
222
- " args and returns a list with command line arguments. The default configures
223
- " zprint with Vim's textwidth.
225
+ " Command line arguments to feed zprint. String, list, or callable that
226
+ " takes no args and returns a string or a list with command line arguments.
227
+ " The default configures zprint with Vim's textwidth.
224
228
call s: plugin .Flag (' zprint_options' , function (' s:ZprintOptions' ))
225
229
226
230
" "
0 commit comments