Fix #1523 - Document completion_filter
This commit is contained in:
parent
c8b77fd4b8
commit
db64571b4c
12
doc/ale.txt
12
doc/ale.txt
@ -2320,6 +2320,9 @@ ale#linter#Define(filetype, linter) *ale#linter#Define()*
|
|||||||
LSP linters handle diagnostics automatically, so
|
LSP linters handle diagnostics automatically, so
|
||||||
the `callback` argument must not be defined.
|
the `callback` argument must not be defined.
|
||||||
|
|
||||||
|
An optional `completion_filter` callback may be
|
||||||
|
defined for filtering completion results.
|
||||||
|
|
||||||
`project_root_callback` A |String| or |Funcref| for a callback function
|
`project_root_callback` A |String| or |Funcref| for a callback function
|
||||||
accepting a buffer number. A |String| should be
|
accepting a buffer number. A |String| should be
|
||||||
returned representing the path to the project for the
|
returned representing the path to the project for the
|
||||||
@ -2345,6 +2348,15 @@ ale#linter#Define(filetype, linter) *ale#linter#Define()*
|
|||||||
This option can be used instead of `language` if a
|
This option can be used instead of `language` if a
|
||||||
linter can check multiple languages.
|
linter can check multiple languages.
|
||||||
|
|
||||||
|
`completion_filter` A |String| or |Funcref| for a callback function
|
||||||
|
accepting a buffer number and a completion item.
|
||||||
|
|
||||||
|
The completion item will be a |Dictionary| following
|
||||||
|
the Language Server Protocol `CompletionItem`
|
||||||
|
interface as described in the specification,
|
||||||
|
available online here:
|
||||||
|
https://microsoft.github.io/language-server-protocol
|
||||||
|
|
||||||
`aliases` A |List| of aliases for the linter name.
|
`aliases` A |List| of aliases for the linter name.
|
||||||
|
|
||||||
This argument can be set with alternative names for
|
This argument can be set with alternative names for
|
||||||
|
Loading…
x
Reference in New Issue
Block a user