1
0
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:
Luis Piloto
2020-09-23 11:43:05 +01:00
committed by GitHub
parent 5339b4e8bd
commit 8d17340295
2 changed files with 18 additions and 1 deletions

View File

@@ -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 = {}

View File

@@ -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~