Skip to content

Commit

Permalink
fix(base): add new diff highlight groups
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Dec 10, 2024
1 parent 32bdcfd commit e90c63e
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions lua/astrotheme/groups/base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -123,21 +123,28 @@ local function callback(c, opts)
SignColumn = { fg = c.none, bg = c.none },

--------------------
--- Diagnostics
--------------------
--- Diff
--------------------
Added = { fg = c.syntax.green },
Removed = { fg = c.syntax.red },
Changed = { fg = c.syntax.orange },
DiffAdded = { fg = c.syntax.green }, -- NOTE: DEPRECATED IN v0.10
DiffRemoved = { fg = c.syntax.red }, -- NOTE: DEPRECATED IN v0.10
DiffChanged = { fg = c.syntax.orange }, -- NOTE: DEPRECATED IN v0.10
DiffAdd = { bg = color.new(c.syntax.green):blend(base, 0.75):tohex() },
DiffChange = { bg = color.new(c.syntax.yellow):blend(base, 0.75):tohex() },
DiffDelete = { bg = color.new(c.syntax.red):blend(base, 0.75):tohex() },
DiffText = { bg = color.new(c.syntax.yellow):blend(base, 0.7):tohex() },
DiffAdded = { fg = c.syntax.green },
DiffRemoved = { fg = c.syntax.red },
DiffChanged = { fg = c.syntax.blue },
DiffOldFile = { fg = c.syntax.orange },
DiffNewFile = { fg = c.syntax.green },
DiffFile = { fg = c.syntax.blue },
DiffLine = { fg = c.syntax.text }, -- NOTE: Find better color
DiffIndexLine = { fg = c.syntax.cyan },

--------------------
--- Diagnostics
--------------------
---
ErrorMsg = { fg = c.syntax.red, bg = c.none },
WarningMsg = { fg = c.ui.yellow, bg = c.none },
Question = { fg = c.ui.purple, bg = c.none },
Expand Down

0 comments on commit e90c63e

Please sign in to comment.