From a2bb86e0aedc150f12d768eb4fbfa5e2c02db350 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lek=C3=AB=20Mula?= Date: Fri, 20 Sep 2024 11:28:33 +0200 Subject: [PATCH] fix(vim): invisible DiffText when cursorline is set Similar to https://github.com/sainnhe/gruvbox-material/commit/80331fbbec9ba18590a17bc6b7d277d96c05c2b6 --- colors/gruvbox-material.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/colors/gruvbox-material.vim b/colors/gruvbox-material.vim index b41d1a6..bc7f827 100644 --- a/colors/gruvbox-material.vim +++ b/colors/gruvbox-material.vim @@ -108,7 +108,11 @@ endif call gruvbox_material#highlight('DiffAdd', s:palette.none, s:palette.bg_diff_green) call gruvbox_material#highlight('DiffChange', s:palette.none, s:palette.bg_diff_blue) call gruvbox_material#highlight('DiffDelete', s:palette.none, s:palette.bg_diff_red) -call gruvbox_material#highlight('DiffText', s:palette.bg0, s:palette.blue) +if has('nvim') + call gruvbox_material#highlight('DiffText', s:palette.bg0, s:palette.blue) +else + call gruvbox_material#highlight('DiffText', s:palette.blue, s:palette.bg0, 'reverse') +endif call gruvbox_material#highlight('Directory', s:palette.green, s:palette.none) call gruvbox_material#highlight('ErrorMsg', s:palette.red, s:palette.none, 'bold,underline') if s:configuration.ui_contrast ==# 'low'