diff options
author | w0rp <devw0rp@gmail.com> | 2018-05-30 20:44:09 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-05-30 20:44:09 +0100 |
commit | db64571b4cebe94919beb2e9ceb4b0cccea34dd8 (patch) | |
tree | 9defb78a8d79e9d2fef51667fcf5ada37ca06bee /doc | |
parent | c8b77fd4b8d726e70567d65563e32c777962b840 (diff) | |
download | ale-db64571b4cebe94919beb2e9ceb4b0cccea34dd8.zip |
Fix #1523 - Document completion_filter
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ale.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/ale.txt b/doc/ale.txt index 6bca5e99..b6122c3e 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -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 |