1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-17 11:30:28 +01:00

Add g:tagbar_no_autocmds option to disable almost all autocmds (#688)

* Closed #578 - Add `g:tagbar_no_autocmds` option to disable almost all autocommands

* Rework to be more streamlined
This commit is contained in:
raven42
2021-01-12 07:41:38 -06:00
committed by GitHub
parent 2a36ad79a7
commit e6e6582739
3 changed files with 60 additions and 33 deletions

View File

@@ -1055,6 +1055,21 @@ wrap intentation to function.
Example:
>
let g:tagbar_wrap = 1
<
*g:tagbar_no_autocmds*
g:tagbar_no_autocmds~
Default: 0
If set to non-zero, tagbar will not enable any autocmds. Note: This greatly
limits what tagbar can do. When activated, it will generate the tags once and
display the contents once. You can use |:TagbarForceUpdate| to manually update
the tagbar window if this is activated. There will only be two autocmds
created in the tagbar autocmd group to handle closing the tagbar window
automatically on the QuitPre event.
Example:
>
let g:tagbar_no_autocmds = 1
<
*g:tagbar_scrolloff*
g:tagbar_scrolloff~