summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorrhysd <lin90162@yahoo.co.jp>2018-05-09 23:08:39 +0900
committerrhysd <lin90162@yahoo.co.jp>2018-05-11 17:46:40 +0900
commit57f0454a557a1bb254fe63c583c53088b619c040 (patch)
tree800bffa4434ce315e37bd19d051cdd994f04a5eb /plugin
parent38c66d33fe8022803497c49239b06112ccbd0a83 (diff)
downloadale-57f0454a557a1bb254fe63c583c53088b619c040.zip
Improve g:ale_set_balloons default value
Diffstat (limited to 'plugin')
-rw-r--r--plugin/ale.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim
index d59ffd6b..a49bf68c 100644
--- a/plugin/ale.vim
+++ b/plugin/ale.vim
@@ -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)
" 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()
" See :help ale#statusline#Count() for getting status reports.