diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 2f3987d..391c852 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -758,7 +758,7 @@ function! s:InitWindow(autoclose) abort setlocal nomodifiable setlocal textwidth=0 - if has('balloon_eval') + if g:tagbar_show_balloon == 1 && has('balloon_eval') setlocal balloonexpr=TagbarBalloonExpr() set ballooneval endif diff --git a/doc/tagbar.txt b/doc/tagbar.txt index 149c6dc..01dc046 100644 --- a/doc/tagbar.txt +++ b/doc/tagbar.txt @@ -555,6 +555,22 @@ Example: let g:tagbar_indent = 1 < + *g:tagbar_show_balloon* +g:tagbar_show_balloon +Default: 1 + +Whether balloon messages should be shown in the Tagbar window. + +Possible values are: + 0: Don't show any balloon messages. + 1: Show balloon messages. This is only available in the GUI when + compiled with the |+balloon_eval| feature. + +Example: +> + let g:tagbar_show_balloon = 0 +< + *g:tagbar_show_visibility* g:tagbar_show_visibility~ Default: 1 diff --git a/plugin/tagbar.vim b/plugin/tagbar.vim index 5900f1f..a1e13e7 100644 --- a/plugin/tagbar.vim +++ b/plugin/tagbar.vim @@ -67,6 +67,7 @@ function! s:setup_options() abort \ ['indent', 2], \ ['left', 0], \ ['previewwin_pos', previewwin_pos], + \ ['show_balloon', 1], \ ['show_visibility', 1], \ ['show_linenumbers', 0], \ ['singleclick', 0],