1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-18 20:10:27 +01:00

Fix for #784 - add additional option for g:tagbar_wrap (#785)

Adding additional setting to `g:tagbar_wrap` to allow for more granular
control of the `linebreak` functionality. If set to 1, linebreak will
also be set. If set to 2, linebreak will be disabled.
This commit is contained in:
David Hegland
2021-08-02 09:59:38 -05:00
committed by GitHub
parent a0a5714910
commit 23ea1961b9
2 changed files with 46 additions and 5 deletions

View File

@@ -1003,6 +1003,11 @@ function! s:InitWindow(autoclose) abort
if exists('+linebreak')
setlocal breakindent
setlocal breakindentopt=shift:4
if g:tagbar_wrap == 1
setlocal linebreak
elseif g:tagbar_wrap == 2
setlocal nolinebreak
endif
endif
endif