summaryrefslogtreecommitdiff
path: root/doc/ale.txt
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2019-06-01 16:48:04 +0100
committerGitHub <noreply@github.com>2019-06-01 16:48:04 +0100
commit135de34d224a6dd5a7a16b44e84e603a6609b34f (patch)
tree171ccdb681e26cfcc096c73c3b81d5f1530c2783 /doc/ale.txt
parent27146ade32d6686fefde27de76b65bcdf353eab5 (diff)
parent5542db1507edc054d654e748a2e7ccdd007e2f95 (diff)
downloadale-135de34d224a6dd5a7a16b44e84e603a6609b34f.zip
Merge pull request #2549 from m-pilia/custom-lsp-requests
Add API for custom LSP requests
Diffstat (limited to 'doc/ale.txt')
-rw-r--r--doc/ale.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/ale.txt b/doc/ale.txt
index 17f1dde6..f0820be6 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -3191,6 +3191,33 @@ ale#linter#PreventLoading(filetype) *ale#linter#PreventLoading()*
|runtimepath| for that filetype. This function can be called from vimrc or
similar to prevent ALE from loading linters.
+
+ale#lsp_linter#SendRequest(buffer, linter_name, message, [Handler])
+ *ale#lsp_linter#SendRequest()*
+
+ Send a custom request to an LSP linter. The arguments are defined as
+ follows:
+
+ `buffer` A valid buffer number.
+
+ `linter_name` A |String| identifying an LSP linter that is available and
+ enabled for the |filetype| of `buffer`.
+
+ `message` A |List| in the form `[is_notification, method, parameters]`,
+ containing three elements:
+ `is_notification` - an |Integer| that has value 1 if the
+ request is a notification, 0 otherwise;
+ `methdod` - a |String|, identifying an LSP method supported
+ by `linter`;
+ `parameters` - a |dictionary| of LSP parameters that are
+ applicable to `method`.
+
+ `Handler` Optional argument, meaningful only when `message[0]` is 0.
+ A |Funcref| that is called when a response to the request is
+ received, and takes as unique argument a dictionary
+ representing the response obtained from the server.
+
+
ale#other_source#ShowResults(buffer, linter_name, loclist)
*ale#other_source#ShowResults()*