From aedcab9da1a0887536644b429c65cab324c07f10 Mon Sep 17 00:00:00 2001 From: Noah Friedman Date: Thu, 25 May 2023 14:54:37 -0400 Subject: [PATCH] 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: {{{