ColorfulDiff.nvim is a extremely light plugin that renders highlights for git diff.
If you are using Lazy.nvim:
require("lazy").setup({
...,
{"Chen-Yulin/ColorfulDiff.nvim"},
})
local config = {
colors = {
origin = "#445522", -- color for the original part
diff = "#225544", -- color for the incoming change
},
refresh_cycle = 250, -- smaller value for higher refresh frequency, will only refresh when the buffer has changed
}
require("colorful_diff").setup(config)