fix: diff syntax

This commit is contained in:
Folke Lemaitre 2021-04-21 08:21:31 +02:00
parent c0c3713bd6
commit b78b7bb2d7
2 changed files with 11 additions and 1 deletions

View File

@ -71,7 +71,7 @@ function M.setup(config)
red = "#f7768e",
red1 = "#db4b4b",
diff = { change = "#394b70", add = "#164846", delete = "#823c41" },
git = { change = "#6183bb", add = "#449dab", delete = "#914c54" },
git = { change = "#6183bb", add = "#449dab", delete = "#f7768e" },
}
if config.style == "night" then colors.bg = "#1a1b26" end
end

View File

@ -232,6 +232,16 @@ function M.setup(config)
-- TSLiteral = { }; -- Literal text.
-- TSURI = { }; -- Any URI like a link or email.
-- diff
diffAdded = { fg = c.git.add },
diffRemoved = { fg = c.git.delete },
diffChanged = { fg = c.git.change },
diffOldFile = { fg = c.yellow },
diffNewFile = { fg = c.orange },
diffFile = { fg = c.blue },
diffLine = { fg = c.comment },
diffIndexLine = { fg = c.magenta },
-- GitGutter
GitGutterAdd = { fg = c.diff.add }, -- diff mode: Added line |diff.txt|
GitGutterChange = { fg = c.diff.change }, -- diff mode: Changed line |diff.txt|