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

Add g:tagbar_scrolloff configuration (#692)

* Add g:tagbar_scroll_offset configuration
Closes #564

Add option for `g:tagbar_scrolloff` to issue a `setlocal scrolloff=#` during tagbar window init

* Address review comments
This commit is contained in:
raven42
2020-10-29 10:36:47 -05:00
committed by GitHub
parent 7a54a7d4ae
commit 00841836b4
3 changed files with 20 additions and 0 deletions

View File

@@ -1025,6 +1025,21 @@ Example:
>
let g:tagbar_wrap = 1
<
*g:tagbar_scrolloff*
g:tagbar_scrolloff~
Default: 0
If set to non-zero, the tagbar window initialization will set the |scrolloff|
value local to the tagbar window to the specified value. This is used to
position the current tag in the tagbar window. See the help for |scrolloff|
for more details. If set to a very high value (greater than the height of the
tagbar window), then the current tag should always stay in the center of the
tagbar window.
Example:
>
let g:tagbar_scrolloff = 10
<
------------------------------------------------------------------------------
HIGHLIGHT COLOURS *tagbar-highlight*