Improve g:ale_set_balloons default value
This commit is contained in:
parent
38c66d33fe
commit
57f0454a55
2 changed files with 6 additions and 2 deletions
|
@ -1350,7 +1350,8 @@ g:ale_set_balloons *g:ale_set_balloons*
|
||||||
*b:ale_set_balloons*
|
*b:ale_set_balloons*
|
||||||
|
|
||||||
Type: |Number|
|
Type: |Number|
|
||||||
Default: `has('balloon_eval')`
|
Default: `has('balloon_eval') && has('gui_running') ||`
|
||||||
|
`has('balloon_eval_term') && !has('gui_running')`
|
||||||
|
|
||||||
When this option is set to `1`, balloon messages will be displayed for
|
When this option is set to `1`, balloon messages will be displayed for
|
||||||
problems. Problems nearest to the cursor on the line the cursor is over will
|
problems. Problems nearest to the cursor on the line the cursor is over will
|
||||||
|
|
|
@ -174,7 +174,10 @@ let g:ale_echo_cursor = get(g:, 'ale_echo_cursor', 1)
|
||||||
let g:ale_echo_delay = get(g:, 'ale_echo_delay', 10)
|
let g:ale_echo_delay = get(g:, 'ale_echo_delay', 10)
|
||||||
|
|
||||||
" This flag can be set to 0 to disable balloon support.
|
" This flag can be set to 0 to disable balloon support.
|
||||||
call ale#Set('set_balloons', has('balloon_eval'))
|
call ale#Set('set_balloons',
|
||||||
|
\ has('balloon_eval') && has('gui_running') ||
|
||||||
|
\ has('balloon_eval_term') && !has('gui_running')
|
||||||
|
\)
|
||||||
|
|
||||||
" A deprecated setting for ale#statusline#Status()
|
" A deprecated setting for ale#statusline#Status()
|
||||||
" See :help ale#statusline#Count() for getting status reports.
|
" See :help ale#statusline#Count() for getting status reports.
|
||||||
|
|
Reference in a new issue