Skip to content

Commit e90c63e

Browse files
committed
fix(base): add new diff highlight groups
1 parent 32bdcfd commit e90c63e

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

lua/astrotheme/groups/base.lua

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,21 +123,28 @@ local function callback(c, opts)
123123
SignColumn = { fg = c.none, bg = c.none },
124124

125125
--------------------
126-
--- Diagnostics
127-
--------------------
126+
--- Diff
127+
--------------------
128+
Added = { fg = c.syntax.green },
129+
Removed = { fg = c.syntax.red },
130+
Changed = { fg = c.syntax.orange },
131+
DiffAdded = { fg = c.syntax.green }, -- NOTE: DEPRECATED IN v0.10
132+
DiffRemoved = { fg = c.syntax.red }, -- NOTE: DEPRECATED IN v0.10
133+
DiffChanged = { fg = c.syntax.orange }, -- NOTE: DEPRECATED IN v0.10
128134
DiffAdd = { bg = color.new(c.syntax.green):blend(base, 0.75):tohex() },
129135
DiffChange = { bg = color.new(c.syntax.yellow):blend(base, 0.75):tohex() },
130136
DiffDelete = { bg = color.new(c.syntax.red):blend(base, 0.75):tohex() },
131137
DiffText = { bg = color.new(c.syntax.yellow):blend(base, 0.7):tohex() },
132-
DiffAdded = { fg = c.syntax.green },
133-
DiffRemoved = { fg = c.syntax.red },
134-
DiffChanged = { fg = c.syntax.blue },
135138
DiffOldFile = { fg = c.syntax.orange },
136139
DiffNewFile = { fg = c.syntax.green },
137140
DiffFile = { fg = c.syntax.blue },
138141
DiffLine = { fg = c.syntax.text }, -- NOTE: Find better color
139142
DiffIndexLine = { fg = c.syntax.cyan },
140143

144+
--------------------
145+
--- Diagnostics
146+
--------------------
147+
---
141148
ErrorMsg = { fg = c.syntax.red, bg = c.none },
142149
WarningMsg = { fg = c.ui.yellow, bg = c.none },
143150
Question = { fg = c.ui.purple, bg = c.none },

0 commit comments

Comments
 (0)