feat(highlight): use default highlights

This commit is contained in:
Barrett Ruth 2026-01-27 14:27:41 -05:00
parent 4c5c44742e
commit fb7888b83c
2 changed files with 8 additions and 10 deletions

View file

@ -367,14 +367,12 @@ end
---@return table<string, table> ---@return table<string, table>
function M.get_highlight_groups() function M.get_highlight_groups()
return { return {
CpTestAC = { fg = '#10b981' }, CpTestAC = { link = 'DiagnosticOk' },
CpTestWA = { fg = '#ef4444' }, CpTestWA = { link = 'DiagnosticError' },
CpTestTLE = { fg = '#f59e0b' }, CpTestTLE = { link = 'DiagnosticWarn' },
CpTestMLE = { fg = '#f59e0b' }, CpTestMLE = { link = 'DiagnosticWarn' },
CpTestRTE = { fg = '#8b5cf6' }, CpTestRTE = { link = 'DiagnosticHint' },
CpTestNA = { fg = '#6b7280' }, CpTestNA = { link = 'Comment' },
CpDiffRemoved = { fg = '#ef4444', bg = '#1f1f1f' },
CpDiffAdded = { fg = '#10b981', bg = '#1f1f1f' },
} }
end end

View file

@ -26,7 +26,7 @@ local function parse_diff_line(text)
line = 0, line = 0,
col_start = highlight_start, col_start = highlight_start,
col_end = #result_text, col_end = #result_text,
highlight_group = 'CpDiffRemoved', highlight_group = 'DiffDelete',
}) })
pos = removed_end + 1 pos = removed_end + 1
else else
@ -38,7 +38,7 @@ local function parse_diff_line(text)
line = 0, line = 0,
col_start = highlight_start, col_start = highlight_start,
col_end = #result_text, col_end = #result_text,
highlight_group = 'CpDiffAdded', highlight_group = 'DiffAdd',
}) })
pos = added_end + 1 pos = added_end + 1
else else