From 2b5fdf146a8aa45b49f6e7899883ae359dc73c4c Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 7 Jul 2019 13:38:35 -0400 Subject: [PATCH] Allow disabling dynamic blame colors Closes https://github.com/tpope/vim-fugitive/pull/986 --- autoload/fugitive.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 80ed98c..c4b05ac 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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\}')