forked from github-mirrors/ale
Mention the disabled option for message severity
This commit is contained in:
parent
5e69aaf4c2
commit
c06467438d
|
@ -30,7 +30,7 @@ function! ale#lsp_window#HandleShowMessage(linter_name, format, params) abort
|
||||||
" Get the configured severity level threshold and check if the message
|
" Get the configured severity level threshold and check if the message
|
||||||
" should be displayed or not
|
" should be displayed or not
|
||||||
let l:configured_severity = tolower(get(g:, 'ale_lsp_show_message_severity', 'error'))
|
let l:configured_severity = tolower(get(g:, 'ale_lsp_show_message_severity', 'error'))
|
||||||
" If the user has confgured with a value we can't find on the conversion
|
" If the user has configured with a value we can't find on the conversion
|
||||||
" dict, fall back to warning
|
" dict, fall back to warning
|
||||||
let l:cfg_severity_threshold = get(s:CFG_TO_LSP_SEVERITY, l:configured_severity, s:LSP_MESSAGE_TYPE_WARNING)
|
let l:cfg_severity_threshold = get(s:CFG_TO_LSP_SEVERITY, l:configured_severity, s:LSP_MESSAGE_TYPE_WARNING)
|
||||||
|
|
||||||
|
|
|
@ -1298,6 +1298,7 @@ g:ale_lsp_show_message_severity *g:ale_lsp_show_message_
|
||||||
`'warning'` - Displays errors and warnings.
|
`'warning'` - Displays errors and warnings.
|
||||||
`'information'` - Displays errors, warnings and infos
|
`'information'` - Displays errors, warnings and infos
|
||||||
`'log'` - Same as `'information'`
|
`'log'` - Same as `'information'`
|
||||||
|
`'disabled'` - Doesn't display any information at all.
|
||||||
|
|
||||||
|
|
||||||
g:ale_lsp_root *g:ale_lsp_root*
|
g:ale_lsp_root *g:ale_lsp_root*
|
||||||
|
|
Loading…
Reference in New Issue