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

Add auto-previewing mode, closes #161

This commit is contained in:
Jan Larres
2013-11-11 18:23:22 +13:00
parent 2d650b96cf
commit 0377f19d74
3 changed files with 17 additions and 0 deletions

View File

@@ -967,6 +967,10 @@ function! s:CreateAutocommands() abort
autocmd WinEnter __Tagbar__ call s:SetStatusLine('current')
autocmd WinLeave __Tagbar__ call s:SetStatusLine('noncurrent')
if g:tagbar_autopreview
autocmd CursorMoved __Tagbar__ nested call s:ShowInPreviewWin()
endif
autocmd WinEnter * if bufwinnr('__Tagbar__') == -1 |
\ call s:ShrinkIfExpanded() |
\ endif