diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 4d5adb5..6697178 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -1033,7 +1033,10 @@ function! s:CreateAutocommands() abort augroup TagbarAutoCmds autocmd! - autocmd CursorHold __Tagbar__.* call s:ShowPrototype(1) + + if !g:tagbar_silent + autocmd CursorHold __Tagbar__.* call s:ShowPrototype(1) + endif autocmd WinEnter __Tagbar__.* call s:SetStatusLine() autocmd WinLeave __Tagbar__.* call s:SetStatusLine() diff --git a/doc/tagbar.txt b/doc/tagbar.txt index 5f4f2d9..2e559c7 100644 --- a/doc/tagbar.txt +++ b/doc/tagbar.txt @@ -721,6 +721,18 @@ default statusline: let g:tagbar_status_func = 'TagbarStatusFunc' < + *g:tagbar_silent* +g:tagbar_silent~ +Default: 0 + +By default if the cursor is over a tag in the tagbar window, information +about the tag is echoed out. Set this option to disable that behavior. + +Example: +> + let g:tagbar_silent = 1 +< + ------------------------------------------------------------------------------ HIGHLIGHT COLOURS *tagbar-highlight* diff --git a/plugin/tagbar.vim b/plugin/tagbar.vim index d2cd175..3b9ef03 100644 --- a/plugin/tagbar.vim +++ b/plugin/tagbar.vim @@ -75,6 +75,7 @@ function! s:setup_options() abort \ ['vertical', 0], \ ['width', 40], \ ['zoomwidth', 1], + \ ['silent', 0], \ ] for [opt, val] in options