mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-17 11:30:28 +01:00
Add g:tagbar_visibility_symbols (#660)
This commit is contained in:
@@ -3,6 +3,9 @@ let s:visibility_symbols = {
|
||||
\ 'protected' : '#',
|
||||
\ 'private' : '-'
|
||||
\ }
|
||||
if !empty(g:tagbar_visibility_symbols)
|
||||
let s:visibility_symbols = g:tagbar_visibility_symbols
|
||||
endif
|
||||
|
||||
function! tagbar#prototypes#basetag#new(name) abort
|
||||
let newobj = {}
|
||||
|
||||
@@ -646,7 +646,21 @@ name.
|
||||
Example:
|
||||
>
|
||||
let g:tagbar_show_visibility = 0
|
||||
<
|
||||
|
||||
*g:tagbar_visibility_symbols*
|
||||
g:tagbar_visibility_symbols
|
||||
Default: { 'public' : '+', 'protected' : '#', 'private' : '-' }
|
||||
|
||||
Symbols to use for visibility (public/protected/private) to the left of the tag
|
||||
name. See |g:tagbar_show_visibility|.
|
||||
|
||||
Example:
|
||||
>
|
||||
let g:tagbar_visibility_symbols = {
|
||||
\ 'public' : '+',
|
||||
\ 'protected' : '#',
|
||||
\ 'private' : '-'
|
||||
\ }
|
||||
|
||||
*g:tagbar_show_linenumbers*
|
||||
g:tagbar_show_linenumbers~
|
||||
|
||||
Reference in New Issue
Block a user