mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-18 03:50:26 +01:00
Add g:tagbar_show_tag_count option (#685)
* Add g:tagbar_show_tag_count option Closes #290 This option will show the tag kind count next to the kind label in the tagbar window. * Address review comments
This commit is contained in:
@@ -1967,7 +1967,12 @@ function! s:PrintKinds(typeinfo, fileinfo) abort
|
||||
endif
|
||||
|
||||
let padding = g:tagbar_show_visibility ? ' ' : ''
|
||||
call add(output, foldmarker . padding . kind.long)
|
||||
if g:tagbar_show_tag_count
|
||||
let tag_count = ' (' . len(curtags) . ')'
|
||||
call add(output, foldmarker . padding . kind.long . tag_count)
|
||||
else
|
||||
call add(output, foldmarker . padding . kind.long)
|
||||
endif
|
||||
|
||||
let curline = len(output) + offset
|
||||
let kindtag.tline = curline
|
||||
|
||||
Reference in New Issue
Block a user