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

Document how to use relative sizes in g:tagbar_width (#689)

This commit is contained in:
raven42
2020-10-28 14:24:17 -05:00
committed by GitHub
parent 8efec2509b
commit 7a54a7d4ae

View File

@@ -539,11 +539,15 @@ g:tagbar_width~
Default: 40
If |g:tagbar_position| does include a 'vertical' options, then this value is
used to determine the width of the Tagbar window in characters.
used to determine the width of the Tagbar window in characters. This value can
also be set using the |winwidth(0)| function call to calculate a dynamic value
to make the tagbar width relative to a percentage of the vim window size as
seen in the example below that will open the tagbar window to 20 percent of
the window width with a limit of no less than 25 characters.
Example:
>
let g:tagbar_width = 30
let g:tagbar_width = max([25, winwidth(0) / 5])
<
*g:tagbar_zoomwidth*