From aedcab9da1a0887536644b429c65cab324c07f10 Mon Sep 17 00:00:00 2001 From: Noah Friedman Date: Thu, 25 May 2023 14:54:37 -0400 Subject: [PATCH 1/2] Update configuration of GitSignsDelete to maintain consistent backgrounds --- after/plugin/dracula.vim | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/after/plugin/dracula.vim b/after/plugin/dracula.vim index dd76de0..98b1478 100644 --- a/after/plugin/dracula.vim +++ b/after/plugin/dracula.vim @@ -56,9 +56,18 @@ if has('nvim-0.5') && luaeval("pcall(require, 'gitsigns')") hi! link GitSignsChange DiffChange hi! link GitSignsChangeLn DiffChange hi! link GitSignsChangeNr DiffChange - hi! link GitSignsDelete DiffDelete - hi! link GitSignsDeleteLn DiffDelete - hi! link GitSignsDeleteNr DiffDelete + + " Manually set `GitSignsDelete` when in a terminal where `g:dracula_colorterm` + " is false to remain consistent with the other GitSigns highlights. + if g:dracula_colorterm || has('gui_running') + hi! link GitSignsDelete DiffDelete + else + hi! link GitSignsDelete DraculaRed + endif + " GitSignsDeleteLn and GitSignsDeleteNr should always match + " whatever GitSignsDelete is set to. + hi! link GitSignsDeleteLn GitSignsDelete + hi! link GitSignsDeleteNr GitSignsDelete endif " }}} " Tree-sitter: {{{ From 22cb6183db202cd476ba60241a89c3c98a88217a Mon Sep 17 00:00:00 2001 From: Noah Friedman Date: Thu, 25 May 2023 17:01:18 -0400 Subject: [PATCH 2/2] Update after/plugin/dracula.vim Co-authored-by: D. Ben Knoble --- after/plugin/dracula.vim | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/after/plugin/dracula.vim b/after/plugin/dracula.vim index 98b1478..3be2a02 100644 --- a/after/plugin/dracula.vim +++ b/after/plugin/dracula.vim @@ -57,17 +57,17 @@ if has('nvim-0.5') && luaeval("pcall(require, 'gitsigns')") hi! link GitSignsChangeLn DiffChange hi! link GitSignsChangeNr DiffChange - " Manually set `GitSignsDelete` when in a terminal where `g:dracula_colorterm` - " is false to remain consistent with the other GitSigns highlights. - if g:dracula_colorterm || has('gui_running') - hi! link GitSignsDelete DiffDelete - else - hi! link GitSignsDelete DraculaRed - endif - " GitSignsDeleteLn and GitSignsDeleteNr should always match - " whatever GitSignsDelete is set to. - hi! link GitSignsDeleteLn GitSignsDelete - hi! link GitSignsDeleteNr GitSignsDelete + " Manually set `GitSignsDelete` when in a terminal where `g:dracula_colorterm` + " is false to remain consistent with the other GitSigns highlights. + if g:dracula_colorterm || has('gui_running') + hi! link GitSignsDelete DiffDelete + else + hi! link GitSignsDelete DraculaRed + endif + " GitSignsDeleteLn and GitSignsDeleteNr should always match + " whatever GitSignsDelete is set to. + hi! link GitSignsDeleteLn GitSignsDelete + hi! link GitSignsDeleteNr GitSignsDelete endif " }}} " Tree-sitter: {{{