From db64571b4cebe94919beb2e9ceb4b0cccea34dd8 Mon Sep 17 00:00:00 2001 From: w0rp Date: Wed, 30 May 2018 20:44:09 +0100 Subject: [PATCH] Fix #1523 - Document completion_filter --- doc/ale.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/ale.txt b/doc/ale.txt index 6bca5e9..b6122c3 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