mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-04 09:02:52 +08:00
Fix #315 Implement the read_buffer option
This commit is contained in:
18
doc/ale.txt
18
doc/ale.txt
@@ -1082,10 +1082,14 @@ ale#linter#Define(filetype, linter) *ale#linter#Define()*
|
||||
See the `output_stream` description for more
|
||||
information.
|
||||
|
||||
The Vim buffer being checked for linter will only
|
||||
be sent to the final command in the chain. Previous
|
||||
commands in the chain will receive no input from
|
||||
stdin.
|
||||
Commands in the chain all behave as if `read_buffer`
|
||||
is set to `0` by default, except for the last command
|
||||
in the chain, which uses the value set for
|
||||
`read_buffer` in the root |Dictionary|. Each command
|
||||
in the chain can also provide a `read_buffer` key
|
||||
to override these values.
|
||||
See the `read_buffer` description for more
|
||||
information.
|
||||
|
||||
`output_stream` A |String| for the output stream the lines of output
|
||||
should be read from for the command which is run. The
|
||||
@@ -1096,6 +1100,12 @@ ale#linter#Define(filetype, linter) *ale#linter#Define()*
|
||||
instead of stdout. The option `'both'` will read
|
||||
from both stder and stdout at the same time.
|
||||
|
||||
`read_buffer` A |Number| (`0` or `1`) indicating whether a command
|
||||
should read the Vim buffer as input via stdin. This
|
||||
option is set to `1` by default, and can be disabled
|
||||
if a command manually reads from a temporary file
|
||||
instead, etc.
|
||||
|
||||
Only one of `command`, `command_callback`, or `command_chain` should be
|
||||
specified. `command_callback` is generally recommended when a command string
|
||||
needs to be generated dynamically, or any global options are used.
|
||||
|
||||
Reference in New Issue
Block a user