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

Fix highlighting for 'diff' filetype #6

Merged
merged 1 commit into from
Jul 13, 2021

Conversation

Rahix
Copy link
Contributor

@Rahix Rahix commented Jul 13, 2021

By default, syntax/diff.vim from the neovim runtime uses highlights for Identifier and Special for added and removed lines:

hi def link diffAdded		Identifier
hi def link diffRemoved		Special

As these are both highlighted in white in monokai.nvim, it makes diff highlighting display everything as plain white.

Fix this by adding explicit highlights for diffAdded and diffRemoved in appropriate colors.

Fix highlighting for the diff filetype.  By default, syntax/diff.vim
uses highlights for `Identifier` and `Special` for added and removed
lines:

    hi def link diffAdded		Identifier
    hi def link diffRemoved		Special

As these are both highlighted in white in monokai.nvim, it makes diff
highlighting display everything as plain white.

Fix this by adding explicit highlights for diffAdded and diffRemoved in
appropriate colors.
@tanvirtin
Copy link
Owner

Thanks a bunch :)

@tanvirtin tanvirtin merged commit a086eeb into tanvirtin:master Jul 13, 2021
@Rahix Rahix deleted the fix-ft-diff branch July 13, 2021 13:20
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