airblade/vim-gitgutter

After update I got ugly colors

vitaly-zdanevich opened this issue · 2 comments

image

Expected: black background, as usual.

What is the latest commit SHA in your installed vim-gitgutter?

ded1194

What vim/nvim version are you on?

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Mar  4 2022 12:05:28)
Included patches: 1-4328
Modified by Gentoo-8.2.4328-r1
Compiled by portage@localhost
Huge version without GUI.  Features included (+) or not (-):
+acl               +cryptv            +fork()            +modify_fname      +persistent_undo   -sun_workshop      +viminfo
+arabic            -cscope            +gettext           +mouse             +popupwin          +syntax            +virtualedit
+autocmd           +cursorbind        -hangul_input      -mouseshape        +postscript        +tag_binary        +visual
+autochdir         +cursorshape       +iconv             +mouse_dec         +printer           -tag_old_static    +visualextra
-autoservername    +dialog_con        +insert_expand     -mouse_gpm         +profile           -tag_any_white     +vreplace
-balloon_eval      +diff              +ipv6              -mouse_jsbterm     -python            -tcl               +wildignore
+balloon_eval_term +digraphs          +job               +mouse_netterm     -python3           +termguicolors     +wildmenu
-browse            -dnd               +jumplist          +mouse_sgr         +quickfix          -terminal          +windows
++builtin_terms    -ebcdic            +keymap            -mouse_sysmouse    +reltime           +terminfo          +writebackup
+byte_offset       +emacs_tags        +lambda            +mouse_urxvt       +rightleft         +termresponse      +X11
+channel           +eval              +langmap           +mouse_xterm       -ruby              +textobjects       +xfontset
+cindent           +ex_extra          +libcall           +multi_byte        +scrollbind        +textprop          -xim
+clientserver      +extra_search      +linebreak         +multi_lang        +signs             +timers            -xpm
+clipboard         -farsi             +lispindent        -mzscheme          +smartindent       +title             +xsmp_interact
+cmdline_compl     +file_in_path      +listcmds          +netbeans_intg     +sodium            -toolbar           +xterm_clipboard
+cmdline_hist      +find_in_path      +localmap          +num64             -sound             +user_commands     -xterm_save
+cmdline_info      +float             -lua               +packages          +spell             +vartabs
+comments          +folding           +menu              +path_extra        +startuptime       +vertsplit
+conceal           -footer            +mksession         -perl              +statusline        +vim9script
   system vimrc file: "/etc/vim/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation:
x86_64-pc-linux-gnu-gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -march=native -pipe -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -L/usr/local/lib -o vim -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -
ltinfo -lelf -lsodium -lacl -lattr -ldl

Fixed with highlight SignColumn ctermbg=black, highlight GitGutterAdd ctermfg=green, but why you add this?

I'm glad the instructions in the readme solved your problem.

GitGutter used to set the sign column's colours because, a few years ago, not many plugins used signs and therefore most colour schemes didn't give the sign column nice colours. So GitGutter set the sign column's colours to give a nicer out-of-the-box experience.

Today, though, most colour schemes do set up the sign column nicely. It is no longer beneficial or justifiable for GitGutter to override the user's colour configuration. Instead GitGutter explains how to set the sign column's colours, if you still need to do it yourself.