Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: preserve syntax highlight on Diff* highlight groups #58

Open
horriblename opened this issue Jan 5, 2025 · 1 comment

Comments

@horriblename
Copy link

it would be nice to have a darker background and preserving syntax highlighting on DiffAdd and DiffChange (and possibly others)

example (I just picked a random bg color):

image

for comparison, what it looks like currently:

image

it really helps with reading code, and doesn't assault my eyes like light mode does hehe

@ImmanuelHaffner
Copy link

I had to do the same for the diff colors. This is what i have currently:

Image

hl(0, 'DiffAdd', { fg = 'NONE', bg = '#0f2909', })  -- bg a dim green
hl(0, 'DiffDelete', { fg = 'NONE', bg = '#331c1c', })  -- bg a dim red
hl(0, 'DiffChange', { fg = 'NONE', bg = '#181800', })  -- bg a dim yellow
hl(0, 'DiffText', { fg = 'NONE', bg = '#282800', })  -- bg a brighter yellow

I will happily file a PR with added highlight group definitions if we can agree on some nice colors :)

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

No branches or pull requests

2 participants