fix: add Added and Removed highlights #57

Merged
barrettruth merged 1 commit from fix/added-removed-groups into main 2026-05-12 12:41:20 +00:00
Owner

Problem

midnight.nvim did not define Neovim's standard Added and Removed highlight groups, so diff sign/text aliases had to carry their own foreground colors or inherit from background diff groups.

Solution

Define Added and Removed as regular foreground-only green/red groups, link diff syntax aliases to them, and leave DiffAdd/DiffDelete as background-bearing diff groups.

Verification

  • nix develop --command just ci
  • Headless Neovim assertions for dark and light palette Added/Removed foregrounds and diff alias links
## Problem midnight.nvim did not define Neovim's standard `Added` and `Removed` highlight groups, so diff sign/text aliases had to carry their own foreground colors or inherit from background diff groups. ## Solution Define `Added` and `Removed` as regular foreground-only green/red groups, link diff syntax aliases to them, and leave `DiffAdd`/`DiffDelete` as background-bearing diff groups. ## Verification - `nix develop --command just ci` - Headless Neovim assertions for dark and light palette `Added`/`Removed` foregrounds and diff alias links
fix: add Added and Removed highlights
All checks were successful
quality / Lint (pull_request) Successful in 6s
quality / Format (pull_request) Successful in 10s
92c5446e53
barrettruth deleted branch fix/added-removed-groups 2026-05-12 12:41:20 +00:00
Sign in to join this conversation.
No description provided.