Allow disabling dynamic blame colors

Closes https://github.com/tpope/vim-fugitive/pull/986
This commit is contained in:
Tim Pope 2019-07-07 13:38:35 -04:00
parent abefcb6ebd
commit 2b5fdf146a

View File

@ -4231,6 +4231,9 @@ function! s:BlameSyntax() abort
hi def link FugitiveblameShort FugitiveblameDelimiter
hi def link FugitiveblameDelimiter Delimiter
hi def link FugitiveblameNotCommittedYet Comment
if !get(g:, 'fugitive_dynamic_colors', 1)
return
endif
let seen = {}
for lnum in range(1, line('$'))
let hash = matchstr(getline(lnum), '^\^\=\zs\x\{6\}')