mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-18 20:10:27 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user