Default to not limiting number of signs on newer Vims

The limit on the maximum number of signs was introduced when Vim's sign
drawing code was much slower than it is now.

See #681.
This commit is contained in:
Andy Stewart
2020-04-27 10:09:22 +01:00
parent 70855aa93d
commit ea14301cb4
3 changed files with 11 additions and 5 deletions

View File

@@ -29,7 +29,11 @@ else
call s:set('g:gitgutter_preview_win_floating', 0)
endif
call s:set('g:gitgutter_enabled', 1)
call s:set('g:gitgutter_max_signs', 500)
if exists('*sign_unplace')
call s:set('g:gitgutter_max_signs', -1)
else
call s:set('g:gitgutter_max_signs', 500)
endif
call s:set('g:gitgutter_signs', 1)
call s:set('g:gitgutter_highlight_lines', 0)
call s:set('g:gitgutter_highlight_linenrs', 0)