summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2019-01-26 19:40:45 +0000
committerGitHub <noreply@github.com>2019-01-26 19:40:45 +0000
commit452460b8cdff8b2809d0226b60183dbda5ae605d (patch)
treeb9e0b78d7f03bcb0d6380c6bb61ba6de96f19d94 /doc
parentcf14d0aa53e9b51f4987dbfd3913183901bb2805 (diff)
parent6fc016ad052725e0d6a474e80f817cb1853e98e2 (diff)
downloadale-452460b8cdff8b2809d0226b60183dbda5ae605d.zip
Merge pull request #2241 from bk2204/lsp-detect-hook
Add a hook to detect LSP project root
Diffstat (limited to 'doc')
-rw-r--r--doc/ale.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/ale.txt b/doc/ale.txt
index ddc5a8a4..e0de8d1e 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -1572,6 +1572,22 @@ b:ale_loclist_msg_format *b:ale_loclist_msg_format*
The strings for configuring `%severity%` are also used for this option.
+g:ale_lsp_root *g:ale_lsp_root*
+b:ale_lsp_root *b:ale_lsp_root*
+
+ Type: |Dictionary| or |String|
+ Default: {}
+
+ This option is used to determine the project root for the LSP linter. If the
+ value is a |Dictionary|, it maps a linter to either a string containing the
+ project root or a |Funcref| to call to look up the root. The funcref is
+ provided the buffer number as its argument.
+
+ The buffer-specific variable may additionally be a string containing the
+ project root itself.
+
+ If neither variable yields a result, a linter-specific function is invoked to
+ detect a project root. If this, too, yields no result, the linter is disabled.
g:ale_max_buffer_history_size *g:ale_max_buffer_history_size*