1
0
mirror of https://github.com/gryf/tagbar.git synced 2026-05-02 20:00:55 +02:00

Silent option

If the silent option is set, tagbar doesn't echo out information about
the tag the cursor is on in the tagbar window.
This commit is contained in:
Anmol Sethi
2016-02-18 04:01:35 -05:00
committed by Jan Larres
parent b6298c0ca0
commit b99e103258
3 changed files with 17 additions and 1 deletions
+4 -1
View File
@@ -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()
+12
View File
@@ -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*
+1
View File
@@ -75,6 +75,7 @@ function! s:setup_options() abort
\ ['vertical', 0],
\ ['width', 40],
\ ['zoomwidth', 1],
\ ['silent', 0],
\ ]
for [opt, val] in options