From 8d17340295f412f5dff04fcbbd47b5b86351045c Mon Sep 17 00:00:00 2001 From: Luis Piloto Date: Wed, 23 Sep 2020 11:43:05 +0100 Subject: [PATCH] Add g:tagbar_visibility_symbols (#660) --- autoload/tagbar/prototypes/basetag.vim | 3 +++ doc/tagbar.txt | 16 +++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/autoload/tagbar/prototypes/basetag.vim b/autoload/tagbar/prototypes/basetag.vim index 2095271..2f411bf 100644 --- a/autoload/tagbar/prototypes/basetag.vim +++ b/autoload/tagbar/prototypes/basetag.vim @@ -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 = {} diff --git a/doc/tagbar.txt b/doc/tagbar.txt index 486cd44..cd73a2d 100644 --- a/doc/tagbar.txt +++ b/doc/tagbar.txt @@ -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~