motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 2b5fdf146a8aa45b49f6e7899883ae359dc73c4c (tree)
parent abefcb6ebd0f30ce9006a954c4cf463d6e6fa570
Author: Tim Pope <code@tpope.net>
Date:   Sun,  7 Jul 2019 13:38:35 -0400

Allow disabling dynamic blame colors

Closes https://github.com/tpope/vim-fugitive/pull/986

Diffstat:
Mautoload/fugitive.vim | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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\}')