#3362 Disable LSP/tsserver hints/suggestions by default

This commit is contained in:
w0rp 2021-02-06 18:49:42 +00:00
parent f9f2ad2765
commit 99eb68e6ca
No known key found for this signature in database
GPG Key ID: 0FC1ECAA8C81CD83
2 changed files with 6 additions and 3 deletions

View File

@ -1712,10 +1712,10 @@ g:ale_lsp_show_message_severity *g:ale_lsp_show_message_severity*
g:ale_lsp_suggestions *g:ale_lsp_suggestions* g:ale_lsp_suggestions *g:ale_lsp_suggestions*
Type: |Number| Type: |Number|
Default: 1 Default: `0`
This variable defines if suggestions must be collected from LSP or tsserver If set to `1`, show hints/suggestions from LSP servers or tsserver, in
and shown. addition to warnings and errors.
g:ale_lsp_root *g:ale_lsp_root* g:ale_lsp_root *g:ale_lsp_root*

View File

@ -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. " This Dictionary configures the default LSP roots for various linters.
let g:ale_lsp_root = get(g:, 'ale_lsp_root', {}) 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. " 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) let g:ale_fix_on_save = get(g:, 'ale_fix_on_save', 0)