Skip to content

How do have two different DiffChange colors, one for removed and one for added? #595

@banjo

Description

@banjo

As the title suggests. I want to have different colors for changed diff text. Currently, I am only able to use one color for changed text.

Here is how it looks:

Image

In the image case, I want the added part on the right to have green text, and the removed part on the left side to have red text.

Currently using this setting:

vim.api.nvim_set_hl(0, "DiffChange", { bg = "#5a6e87" })
vim.api.nvim_set_hl(0, "DiffText", { bg = "#a3b7cf", bold = true })

Also, DiffAdd and those only works for whole lines that have been added. I am talking about a partial change on a line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions