Skip to content

Support light backgroud for delta diffs#5

Open
cgimenes wants to merge 2 commits intospacedentist:masterfrom
cgimenes:master
Open

Support light backgroud for delta diffs#5
cgimenes wants to merge 2 commits intospacedentist:masterfrom
cgimenes:master

Conversation

@cgimenes
Copy link

@cgimenes cgimenes commented Feb 2, 2026

This pull request introduces a small but important usability improvement to the diff command generation logic. Now, the diff output will automatically adjust for light or dark backgrounds by passing the appropriate flag to delta based on the user's current Vim background setting.

  • Diff output theming:
    • Updated the get_diff_command function in lua/resolve/init.lua to detect if the Vim background is set to "light" and, if so, append the --light flag to the delta command for improved readability in light-themed environments.

Copy link
Owner

@spacedentist spacedentist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Looks good. One little comment.

Co-authored-by: Sven Over <sp@cedenti.st>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants