mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-18 03:50:26 +01: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:
@@ -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()
|
||||
|
||||
|
||||
@@ -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*
|
||||
|
||||
|
||||
@@ -75,6 +75,7 @@ function! s:setup_options() abort
|
||||
\ ['vertical', 0],
|
||||
\ ['width', 40],
|
||||
\ ['zoomwidth', 1],
|
||||
\ ['silent', 0],
|
||||
\ ]
|
||||
|
||||
for [opt, val] in options
|
||||
|
||||
Reference in New Issue
Block a user