summaryrefslogtreecommitdiff
path: root/doc/ale.txt
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2023-09-14 00:38:12 +0100
committerw0rp <devw0rp@gmail.com>2023-09-14 00:40:56 +0100
commitbe69af270547b0d1dd5fe947efb3f61455f709ed (patch)
tree3d72ab429ed3d6025fb88accbd2be753fb78f26a /doc/ale.txt
parent9092af9ad6a5c93a759be571323ea1d0cafa8d6e (diff)
downloadale-be69af270547b0d1dd5fe947efb3f61455f709ed.zip
#4607 No conflicts with nvim-lspconfig by default
Default `g:ale_disable_lsp` to a new mode `'auto'` by default. With this setting applied, ALE will now check for the presence of nvim-lspconfig and automatically turn off particular LSP linters if already configured via nvim-lspconfig. For users that do not use `nvim-lspconfig`, everything should work as before.
Diffstat (limited to 'doc/ale.txt')
-rw-r--r--doc/ale.txt13
1 files changed, 9 insertions, 4 deletions
diff --git a/doc/ale.txt b/doc/ale.txt
index 423204a3..211ac1c3 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -1002,11 +1002,16 @@ g:ale_detail_to_floating_preview *g:ale_detail_to_floating_preview*
g:ale_disable_lsp *g:ale_disable_lsp*
*b:ale_disable_lsp*
- Type: |Number|
- Default: `0`
+ Type: |Number| OR |String|
+ Default: `'auto'`
+
+ When this option is set to `'auto'`, ALE will automatically disable linters
+ that it detects as having already been configured with the nvim-lspconfig
+ plugin. When this option is set to `1`, ALE ignores all linters powered by
+ LSP, and also `tsserver`.
- When this option is set to `1`, ALE ignores all linters powered by LSP,
- and also `tsserver`.
+ Any linters that are disabled will also not be usable for LSP functionality
+ other than just linting.
Please see also |ale-lsp|.