From e6e91ef36d95a2c10634a48e9426283725896b2e Mon Sep 17 00:00:00 2001 From: KronikPillow Date: Sun, 5 Jan 2020 19:38:33 +0100 Subject: [PATCH] added diff highlighting settings to make highlighted text readable when highlighted --- .config/nvim/init.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 16d88fb5..2bdca65c 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -109,3 +109,8 @@ set clipboard+=unnamedplus autocmd BufWritePost *Xresources,*Xdefaults !xrdb % " Update binds when sxhkdrc is updated. autocmd BufWritePost *sxhkdrc !pkill -USR1 sxhkd + +" Turns off highlighting on the bits of code that are changed, so the line that is changed is highlighted but the actual text that has changed stands out on the line and is readable. +if &diff + highlight! link DiffText MatchParen +endif