Add different highlight color for 'diff text' (#27)

When lookin at diffs, it is very useful to not only see if a line
changed, but also have a highlight for what exactly changed within the
line.
This commit is contained in:
JSchrtke
2021-05-02 09:24:55 +02:00
committed by GitHub
parent d4bd2b389a
commit dfa4933ce2
2 changed files with 2 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ function M.setup(config)
DiffAdd = { bg = c.diff.add }, -- diff mode: Added line |diff.txt|
DiffChange = { bg = c.diff.change }, -- diff mode: Changed line |diff.txt|
DiffDelete = { bg = c.diff.delete }, -- diff mode: Deleted line |diff.txt|
DiffText = { bg = c.diff.change }, -- diff mode: Changed text within a changed line |diff.txt|
DiffText = { bg = c.diff.text, fg = c.diff.change }, -- diff mode: Changed text within a changed line |diff.txt|
EndOfBuffer = { fg = c.bg }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.
-- TermCursor = { }, -- cursor in a focused terminal
-- TermCursorNC= { }, -- cursor in an unfocused terminal