summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2021-02-06 18:49:42 +0000
committerw0rp <devw0rp@gmail.com>2021-02-06 18:49:42 +0000
commit99eb68e6ca98a2eaabeb1e1eea00b3f59431b9dc (patch)
tree5c260e867f33b2e1461e7d3542cf388259e654c3
parentf9f2ad276507ec6fb3d92f3f3525de1cb4d17281 (diff)
downloadale-99eb68e6ca98a2eaabeb1e1eea00b3f59431b9dc.zip
#3362 Disable LSP/tsserver hints/suggestions by default
-rw-r--r--doc/ale.txt6
-rw-r--r--plugin/ale.vim3
2 files changed, 6 insertions, 3 deletions
diff --git a/doc/ale.txt b/doc/ale.txt
index 034d62b8..ad73eed2 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -1712,10 +1712,10 @@ g:ale_lsp_show_message_severity *g:ale_lsp_show_message_severity*
g:ale_lsp_suggestions *g:ale_lsp_suggestions*
Type: |Number|
- Default: 1
+ Default: `0`
- This variable defines if suggestions must be collected from LSP or tsserver
- and shown.
+ If set to `1`, show hints/suggestions from LSP servers or tsserver, in
+ addition to warnings and errors.
g:ale_lsp_root *g:ale_lsp_root*
diff --git a/plugin/ale.vim b/plugin/ale.vim
index 1735715d..845586be 100644
--- a/plugin/ale.vim
+++ b/plugin/ale.vim
@@ -90,6 +90,9 @@ let g:ale_lint_on_filetype_changed = get(g:, 'ale_lint_on_filetype_changed', 1)
" This Dictionary configures the default LSP roots for various linters.
let g:ale_lsp_root = get(g:, 'ale_lsp_root', {})
+" If set to 1, hints and suggestion from LSP servers and tsserver will be shown.
+let g:ale_lsp_suggestions = get(g:, 'ale_lsp_suggestions', 0)
+
" This flag can be set to 1 to enable automatically fixing files on save.
let g:ale_fix_on_save = get(g:, 'ale_fix_on_save', 0)