mirror of
https://github.com/gryf/tagbar.git
synced 2026-11-21 20:46:55 +01:00
Add auto-previewing mode, closes #161
This commit is contained in:
1 parent
2d650b96cf
commit
0377f19d74
3 files changed
+17
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user