Skip to content

Chen-Yulin/ColorfulDiff.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

91b1ec8 · Oct 24, 2024

History

16 Commits
Oct 24, 2024
Oct 14, 2024
Oct 12, 2024
Oct 12, 2024
Oct 12, 2024
Oct 14, 2024

Repository files navigation

ColorfulDiff.nvim is a extremely light plugin that renders highlights for git diff.

image

🚀 Getting Started

Installation

If you are using Lazy.nvim:

require("lazy").setup({
  ...,
  {"Chen-Yulin/ColorfulDiff.nvim"},
})

Configuration

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)

About

Add Colorful background to diff patch

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages