1
0
mirror of https://github.com/gryf/tagbar.git synced 2025-12-18 03:50:26 +01:00

Fix for #647: Add g:tagbar_wrap option

This commit is contained in:
raven42
2020-09-21 08:24:01 -05:00
parent 30fb229937
commit 22df1b87af
3 changed files with 27 additions and 1 deletions

View File

@@ -954,10 +954,19 @@ function! s:InitWindow(autoclose) abort
" Window-local options
setlocal nolist
setlocal nowrap
setlocal winfixwidth
setlocal nospell
if g:tagbar_wrap == 0
setlocal nowrap
else
setlocal wrap
if exists('+linebreak')
setlocal breakindent
setlocal breakindentopt=shift:4
endif
endif
if g:tagbar_show_linenumbers == 0
setlocal nonumber
if exists('+relativenumber')