mirror of
https://github.com/dense-analysis/ale.git
synced 2026-05-25 09:48:43 +08:00
doc: Clarify the types of process_with (#4039)
This commit is contained in:
+9
-5
@@ -364,12 +364,16 @@ are supported for running the commands.
|
|||||||
|
|
||||||
`process_with` An optional callback for post-processing.
|
`process_with` An optional callback for post-processing.
|
||||||
|
|
||||||
The callback must accept two arguments,
|
The callback must accept arguments `(bufnr, output)`:
|
||||||
`(buffer, output)`, which can be used for converting
|
the buffer number undergoing fixing and the fixer's
|
||||||
the output from a command into lines to replace the
|
output as a |List| of |String|s. It must return a |List|
|
||||||
buffer's contents with.
|
of |String|s that will be the new contents of the
|
||||||
|
buffer.
|
||||||
|
|
||||||
|
This callback is useful to remove excess lines from the
|
||||||
|
command's output or apply additional changes to the
|
||||||
|
output.
|
||||||
|
|
||||||
A |List| of |String|s must be returned.
|
|
||||||
|
|
||||||
`read_buffer` An optional key for disabling reading the buffer.
|
`read_buffer` An optional key for disabling reading the buffer.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user