1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-18 03:50:26 +01:00

Help visibility (#686)

Closes #410

Add `g:tagbar_help_visibility` option to always show the help dialog
This commit is contained in:
raven42
2020-10-27 14:14:39 -05:00
committed by GitHub
parent 469c4b3188
commit aa8c592201
3 changed files with 12 additions and 3 deletions

View File

@@ -1998,7 +1998,7 @@ function! s:PrintKinds(typeinfo, fileinfo) abort
endfor
let outstr = join(output, "\n")
if g:tagbar_compact && s:short_help
if g:tagbar_compact && !g:tagbar_help_visibility && s:short_help
silent 0put =outstr
else
silent put =outstr
@@ -2058,10 +2058,10 @@ endfunction
" s:PrintHelp() {{{2
function! s:PrintHelp() abort
if !g:tagbar_compact && s:short_help
if !g:tagbar_compact && !g:tagbar_help_visibility && s:short_help
silent 0put ='\" Press ' . s:get_map_str('help') . ' for help'
silent put _
elseif !s:short_help
elseif g:tagbar_help_visibility || !s:short_help
silent 0put ='\" Tagbar keybindings'
silent put ='\"'
silent put ='\" --------- General ---------'