Skip to content

Commit

Permalink
Fix #1523 - Document completion_filter
Browse files Browse the repository at this point in the history
  • Loading branch information
w0rp committed May 30, 2018
1 parent c8b77fd commit db64571
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions doc/ale.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit db64571

Please sign in to comment.