From ac8cc6d9911376472ed85928f15b89a7cfa62516 Mon Sep 17 00:00:00 2001 From: w0rp Date: Tue, 8 Aug 2017 23:52:28 +0100 Subject: Document the extra optional argument for ale#Queue --- doc/ale.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'doc/ale.txt') diff --git a/doc/ale.txt b/doc/ale.txt index 1de7803d..0550e4de 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -1166,7 +1166,7 @@ ALEInfoToClipboard *ALEInfoToClipboard* =============================================================================== 7. API *ale-api* -ale#Queue(delay, [linting_flag]) *ale#Queue()* +ale#Queue(delay, [linting_flag, buffer_number]) *ale#Queue()* Run linters for the current buffer, based on the filetype of the buffer, with a given `delay`. A `delay` of `0` will run the linters immediately. @@ -1177,6 +1177,9 @@ ale#Queue(delay, [linting_flag]) *ale#Queue()* is `'lint_file'`, then linters where the `lint_file` option is set to `1` will be run. Linters with `lint_file` set to `1` are not run by default. + An optional `buffer_number` argument can be given for specifying the buffer + to check. The active buffer (`bufnr('')`) will be checked by default. + ale#engine#CreateDirectory(buffer) *ale#engine#CreateDirectory()* -- cgit v1.2.3