@@ -53,7 +53,7 @@ call s:plugin.flags.autopep8_executable.AddCallback(
5353
5454" "
5555" 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 .
5757call s: plugin .Flag (' clang_format_executable' , ' clang-format' )
5858" Invalidate cache of detected clang-format version when this is changed,
5959" regardless of {value} arg.
@@ -73,7 +73,8 @@ call s:plugin.Flag('clang_format_style', 'file')
7373call s: plugin .Flag (' gofmt_executable' , ' gofmt' )
7474
7575" "
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.
7778call s: plugin .Flag (' dartfmt_executable' , [' dart' , ' format' ])
7879
7980
@@ -82,7 +83,8 @@ call s:plugin.Flag('dartfmt_executable', ['dart', 'format'])
8283call s: plugin .Flag (' js_beautify_executable' , ' js-beautify' )
8384
8485" "
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.
8688call s: plugin .Flag (' mix_executable' , ' mix' )
8789
8890" "
@@ -143,9 +145,10 @@ call s:plugin.Flag('jsonnetfmt_executable', 'jsonnetfmt')
143145call s: plugin .Flag (' google_java_executable' , ' google-java-format' )
144146
145147" "
146- " The path to the ktfmt executable with args, as a list. The default value
147- " assumes there is a wrapper script named `ktfmt`. Without such a script, this
148- " will generally have the form:
148+ " The path to the ktfmt executable with args. String, list, or callable that
149+ " takes no args and returns a string or a list with command line arguments.
150+ " The default value assumes there is a wrapper script named `ktfmt`. Without
151+ " such a script, this will generally have the form:
149152" `ktfmt_executable=java,-jar,/path/to/ktfmt-VERSION-jar-with-dependencies.jar`
150153"
151154" Note that range formatting is not fully supported, with a feature request at
@@ -155,15 +158,15 @@ call s:plugin.Flag('google_java_executable', 'google-java-format')
155158call s: plugin .Flag (' ktfmt_executable' , [' ktfmt' ])
156159
157160" "
158- " Command line arguments to feed shfmt. Either a list or callable that
159- " takes no args and returns a list with command line arguments. By default, uses
160- " the Google's style.
161+ " Command line arguments to feed shfmt. String, list, or callable that
162+ " takes no args and returns a string or a list with command line arguments.
163+ " By default, uses the Google style.
161164" See https://github.com/mvdan/sh for details.
162165call s: plugin .Flag (' shfmt_options' , [' -i' , ' 2' , ' -sr' , ' -ci' ])
163166
164167" "
165168" The path to the shfmt executable. String, list, or callable that
166- " takes no args and returns a string or a list.
169+ " takes no args and returns a string or a list with command line arguments .
167170call s: plugin .Flag (' shfmt_executable' , ' shfmt' )
168171
169172" "
@@ -187,8 +190,9 @@ endfunction
187190
188191" "
189192" The path to the prettier executable. String, list, or callable that
190- " takes no args and returns a string or a list. The default uses npx if
191- " available, so that the repository-local prettier will have priority.
193+ " takes no args and returns a string or a list with command line arguments.
194+ " The default uses npx if available, so that the repository-local prettier
195+ " will have priority.
192196call s: plugin .Flag (' prettier_executable' , function (' s:LookupPrettierExecutable' ))
193197
194198" Invalidate cache of detected prettier availability whenever
@@ -214,9 +218,9 @@ function s:ZprintOptions() abort
214218endfunction
215219
216220" "
217- " Command line arguments to feed zprint. Either a list or callable that takes no
218- " args and returns a list with command line arguments. The default configures
219- " zprint with Vim's textwidth.
221+ " Command line arguments to feed zprint. String, list, or callable that
222+ " takes no args and returns a string or a list with command line arguments.
223+ " The default configures zprint with Vim's textwidth.
220224call s: plugin .Flag (' zprint_options' , function (' s:ZprintOptions' ))
221225
222226" "
0 commit comments