Skip to content

Commit

Permalink
fix(general): set highlight of added/removed/changed (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineco authored May 25, 2024
1 parent e972c96 commit 825e7f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/mellifluous/highlights/general.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ function M.set(hl, colors)
hl.set('DiffDelete', { bg = colors.bg:with_overlay(colors.ui_red, 15):saturated(20) }) -- Diff mode: Deleted line |diff.txt|
hl.set('DiffChange', { bg = colors.bg:with_overlay(colors.ui_orange, 15):saturated(20) }) -- Diff mode: Changed line |diff.txt|
hl.set('DiffText', { bg = colors.bg:with_overlay(colors.ui_orange, 30):saturated(20) }) -- Diff mode: Changed text within a changed line |diff.txt|
hl.set('Added', { fg = colors.ui_green }) -- Added text (doc, git, etc.)
hl.set('Removed', { fg = colors.ui_red }) -- Removed text (doc, git, etc.)
hl.set('Changed', { fg = colors.ui_orange }) -- Changed text (doc, git,, etc.)
hl.set('EndOfBuffer', { fg = colors.bg }) -- Filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.
hl.set('TermCursor', { link = 'Cursor' }) -- Cursor in a focused terminal
hl.set('TermCursorNC', { bg = colors.fg5 }) -- Cursor in an unfocused terminal
Expand Down

0 comments on commit 825e7f9

Please sign in to comment.