Skip to content

[mini.diff] Highlight group for entire changed lines in overlay #1319

Closed
@net

Description

@net

Contributing guidelines

Module(s)

mini.diff

Description

I would like to set up overlay highlights for mini.diff so that it looks like a standard diff: changed lines highlighted red in the source and green in the buffer.

While right now mini.diff has a highlight group MiniDiffOverAdd for added buffer lines, there is no highlight group that spans entire changed buffer lines.

Additionally, setting the MiniDiffOverChange background to None doesn't fall through to the MiniDiffOverContext background, leaving an unaesthetic gap in the context line background.

For reference, this is how I'd like to color mini.diff overlays:

Screenshot 2024-10-31 at 15 16 10

This is how they can be colored right now:

Screenshot 2024-10-31 at 15 17 36

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for a feature to existing modulemini.diffwikiSolution is present (or should be present) in wiki

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions