From f5abcd6f466a627a85a33f37eb4fe219a3111556 Mon Sep 17 00:00:00 2001 From: maujim Date: Fri, 16 Oct 2020 14:16:19 -0400 Subject: [PATCH 1/2] Allow more granular control of tagbar_compact option. --- autoload/tagbar.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 666002f..558281d 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -1952,7 +1952,7 @@ function! s:PrintKinds(typeinfo, fileinfo) abort for tag in curtags call s:PrintTag(tag, 0, output, a:fileinfo, a:typeinfo) - if !g:tagbar_compact + if g:tagbar_compact != 1 call add(output, '') endif endfor @@ -1987,7 +1987,7 @@ function! s:PrintKinds(typeinfo, fileinfo) abort endfor endif - if !g:tagbar_compact + if g:tagbar_compact != 1 call add(output, '') endif endif From 05bc912c76a883669d070bc57a48b321f802b0c3 Mon Sep 17 00:00:00 2001 From: maujim Date: Fri, 16 Oct 2020 14:16:54 -0400 Subject: [PATCH 2/2] Update doc to reflect new possible values for tagbar_compact. --- doc/tagbar.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/tagbar.txt b/doc/tagbar.txt index afce89a..a44ad75 100644 --- a/doc/tagbar.txt +++ b/doc/tagbar.txt @@ -613,6 +613,11 @@ Setting this option will result in Tagbar omitting the short help at the top of the window and the blank lines in between top-level scopes in order to save screen real estate. +Possible values are: + 0: Show short help and blank lines between top-level scopes + 1: Don't show the short help or the blank lines. + 2: Don't show the short help but show the blank lines. + Example: > let g:tagbar_compact = 1