fix: much better diff colors in line with the vscode theme
This commit is contained in:
@@ -30,19 +30,28 @@ function M.setup(config)
|
|||||||
blue2 = "#0db9d7",
|
blue2 = "#0db9d7",
|
||||||
blue5 = "#89ddff",
|
blue5 = "#89ddff",
|
||||||
blue6 = "#B4F9F8",
|
blue6 = "#B4F9F8",
|
||||||
|
blue7 = "#394b70",
|
||||||
magenta = "#bb9af7",
|
magenta = "#bb9af7",
|
||||||
purple = "#9d7cd8",
|
purple = "#9d7cd8",
|
||||||
orange = "#ff9e64",
|
orange = "#ff9e64",
|
||||||
yellow = "#e0af68",
|
yellow = "#e0af68",
|
||||||
green = "#9ece6a",
|
green = "#9ece6a",
|
||||||
green1 = "#73daca",
|
green1 = "#73daca",
|
||||||
|
green2 = "#41a6b5",
|
||||||
teal = "#1abc9c",
|
teal = "#1abc9c",
|
||||||
red = "#f7768e",
|
red = "#f7768e",
|
||||||
red1 = "#db4b4b",
|
red1 = "#db4b4b",
|
||||||
diff = { change = "#394b70", add = "#164846", delete = "#823c41", text = '#E0AF68' },
|
|
||||||
git = { change = "#6183bb", add = "#449dab", delete = "#f7768e" },
|
git = { change = "#6183bb", add = "#449dab", delete = "#f7768e" },
|
||||||
}
|
}
|
||||||
if config.style == "night" or vim.o.background == "light" then colors.bg = "#1a1b26" end
|
if config.style == "night" or vim.o.background == "light" then colors.bg = "#1a1b26" end
|
||||||
|
util.bg = colors.bg
|
||||||
|
|
||||||
|
colors.diff = {
|
||||||
|
add = util.darken(colors.green2, .15),
|
||||||
|
delete = util.darken(colors.red1, .15),
|
||||||
|
change = util.darken(colors.blue7, .15),
|
||||||
|
text = colors.blue7,
|
||||||
|
}
|
||||||
|
|
||||||
colors.gitSigns = {
|
colors.gitSigns = {
|
||||||
add = util.brighten(colors.diff.add, .2),
|
add = util.brighten(colors.diff.add, .2),
|
||||||
@@ -50,7 +59,6 @@ function M.setup(config)
|
|||||||
delete = util.brighten(colors.diff.delete, .2),
|
delete = util.brighten(colors.diff.delete, .2),
|
||||||
}
|
}
|
||||||
|
|
||||||
util.bg = colors.bg
|
|
||||||
colors.git.ignore = colors.dark3
|
colors.git.ignore = colors.dark3
|
||||||
colors.black = util.darken(colors.bg, 0.8, "#000000")
|
colors.black = util.darken(colors.bg, 0.8, "#000000")
|
||||||
colors.border_highlight = colors.blue0
|
colors.border_highlight = colors.blue0
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ function M.setup(config)
|
|||||||
DiffAdd = { bg = c.diff.add }, -- diff mode: Added line |diff.txt|
|
DiffAdd = { bg = c.diff.add }, -- diff mode: Added line |diff.txt|
|
||||||
DiffChange = { bg = c.diff.change }, -- diff mode: Changed 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|
|
DiffDelete = { bg = c.diff.delete }, -- diff mode: Deleted line |diff.txt|
|
||||||
DiffText = { bg = c.diff.text, fg = c.diff.change }, -- diff mode: Changed text within a changed line |diff.txt|
|
DiffText = { bg = c.diff.text }, -- 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|.
|
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
|
-- TermCursor = { }, -- cursor in a focused terminal
|
||||||
-- TermCursorNC= { }, -- cursor in an unfocused terminal
|
-- TermCursorNC= { }, -- cursor in an unfocused terminal
|
||||||
|
|||||||
Reference in New Issue
Block a user