mirror of
https://github.com/gryf/tagbar.git
synced 2026-11-21 20:46:55 +01:00
Update on save for smaller files, closes #40
This commit is contained in:
1 parent
7cc9789d63
commit
c07e878249
3 files changed
+24
No files matched your search
@@ -887,6 +887,10 @@ function! s:CreateAutocommands()
|
||||
autocmd BufUnload __Tagbar__ call s:CleanUp()
|
||||
autocmd CursorHold __Tagbar__ call s:ShowPrototype()
|
||||
|
||||
autocmd BufWritePost *
|
||||
\ if line('$') < g:tagbar_updateonsave_maxlines |
|
||||
\ call s:AutoUpdate(fnamemodify(expand('<afile>'), ':p')) |
|
||||
\ endif
|
||||
autocmd BufEnter,CursorHold * call
|
||||
\ s:AutoUpdate(fnamemodify(expand('<afile>'), ':p'))
|
||||
autocmd BufDelete * call
|
||||
|
||||
Reference in new issue
Block a user