Fix #1523 - Document completion_filter

This commit is contained in:
w0rp 2018-05-30 20:44:09 +01:00
parent c8b77fd4b8
commit db64571b4c
No known key found for this signature in database
GPG Key ID: 0FC1ECAA8C81CD83

View File

@ -2320,6 +2320,9 @@ ale#linter#Define(filetype, linter) *ale#linter#Define()*
LSP linters handle diagnostics automatically, so
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
accepting a buffer number. A |String| should be
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
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.
This argument can be set with alternative names for