summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-07-03 01:41:46 +0100
committerw0rp <devw0rp@gmail.com>2018-07-03 01:41:46 +0100
commite46474ac0a86292bd336b5b05452bed1a681605c (patch)
tree1f196a7ded2ee95e274f1c7dacbb1c7bb16eb711 /doc
parent5aba55bb8634ea0304eab711e861098f99b70318 (diff)
downloadale-e46474ac0a86292bd336b5b05452bed1a681605c.zip
Close #830 - Implement LSP connections via TCP sockets
Diffstat (limited to 'doc')
-rw-r--r--doc/ale.txt17
1 files changed, 16 insertions, 1 deletions
diff --git a/doc/ale.txt b/doc/ale.txt
index 13478b42..4a8fdd9a 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -2371,8 +2371,16 @@ ale#linter#Define(filetype, linter) *ale#linter#Define()*
When this argument is set to `'stdio'`, then the
linter will be defined as an LSP linter which keeps a
- process for a language server runnning, and
+ process for a language server running, and
communicates with it directly via a |channel|.
+ `executable` or `executable_callback` must be set,
+ and `command` or `command_callback` must be set.
+
+ When this argument is set to `'socket'`, then the
+ linter will be defined as an LSP linter via a TCP
+ socket connection. `address_callback` must be set
+ with a callback returning an address to connect to.
+ ALE will not start a server automatically.
When this argument is not empty, only one of either
`language` or `language_callback` must be defined,
@@ -2388,6 +2396,13 @@ ale#linter#Define(filetype, linter) *ale#linter#Define()*
`initialization_options_callback` may be defined to
pass initialization options to the LSP.
+ `address_callback` A |String| or |Funcref| for a callback function
+ accepting a buffer number. A |String| should be
+ returned with an address to connect to.
+
+ This argument must only be set if the `lsp` argument
+ is set to `'socket'`.
+
`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