From 09c4a473bd7e4be1f6738062dfb38ab5ff69cd6e Mon Sep 17 00:00:00 2001 From: "Andrew R. M" Date: Fri, 4 Apr 2025 17:43:05 +0000 Subject: [PATCH] Add vim-gitgutter to configuration --- .gitmodules | 3 +++ vim/.vim/bundle/vim-gitgutter | 1 + vim/.vim/colors/halfdab.vim | 6 ++++++ vim/.vimrc | 8 ++++++++ 4 files changed, 18 insertions(+) create mode 160000 vim/.vim/bundle/vim-gitgutter diff --git a/.gitmodules b/.gitmodules index c5df9ef..e867a4b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -55,3 +55,6 @@ [submodule "vim/.vim/nvim-bundle/LuaSnip"] path = vim/.vim/nvim-bundle/LuaSnip url = https://github.com/L3MON4D3/LuaSnip.git +[submodule "vim/.vim/bundle/vim-gitgutter"] + path = vim/.vim/bundle/vim-gitgutter + url = https://github.com/airblade/vim-gitgutter.git diff --git a/vim/.vim/bundle/vim-gitgutter b/vim/.vim/bundle/vim-gitgutter new file mode 160000 index 0000000..7b0b509 --- /dev/null +++ b/vim/.vim/bundle/vim-gitgutter @@ -0,0 +1 @@ +Subproject commit 7b0b5098e3e57be86bb96cfbf2b8902381eef57c diff --git a/vim/.vim/colors/halfdab.vim b/vim/.vim/colors/halfdab.vim index 1bcf4f2..302cf12 100644 --- a/vim/.vim/colors/halfdab.vim +++ b/vim/.vim/colors/halfdab.vim @@ -157,6 +157,12 @@ exe "hi! PmenuSel" .s:fg_black .s:bg_white exe "hi! PmenuSbar" .s:fg_default .s:bg_black exe "hi! PmenuThumb" .s:fg_default .s:bg_black +"{- More readable diffs +exe "hi! DiffAdd" .s:fg_white .s:bg_green +exe "hi! DiffChange" .s:fg_black .s:bg_yellow +exe "hi! DiffDelete" .s:fg_white .s:bg_red +exe "hi! DiffText" .s:fg_white .s:bg_red + "if &background == "light" " highlight Normal ctermfg=0 ctermbg=15 "endif diff --git a/vim/.vimrc b/vim/.vimrc index 9525708..2456843 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -148,6 +148,14 @@ set nocompatible "{- PLUGINS -}" + "{- GITGUTTER -}" + " Make the gutters look pretty + " highlight! link LineNr SignColumn + " " highlight SignColumn ctermbg=black guibg=black ctermfg=white guifg=white + let g:gitgutter_set_sign_backgrounds = 1 + " Change update time to get faster updates + set updatetime=1000 + "{- SLIME -}" " Use screen as slime's target let g:slime_target = "screen"