projekt0n / github-nvim-theme

GitHub's Neovim themes
MIT License
2.08k stars 105 forks source link

Don't set foreground colour for `Diff*` groups? #182

Closed tombh closed 2 years ago

tombh commented 2 years ago

I just installed the Diffview plugin and noticed that syntax highlighting was being overwritten by the Diff* groups. With this override I got the syntax highlighting back and tidied up the diff-changed colours:

overrides = function(c)
  return {
    DiffAdd = {
      bg = c.diff.add,
    },
    DiffChange = {},
    DiffDelete = {
      bg = c.diff.delete,
    },
    DiffText = { bg = c.diff.change },
  }
end,

Edit: added link to Diffview plugin

luisdavim commented 2 years ago

@tombh could you maybe open a PR for this?