Skip to content

Commit

Permalink
feat: diffview.nvim integration (#359)
Browse files Browse the repository at this point in the history
This integration fixes the colourscheme for diffview.nvim
and matches it to that of GitHub code diff view.

Optimized for and tested with dark mode.
  • Loading branch information
daniel-odrinski authored Nov 1, 2024
1 parent 0e1824f commit f006ffd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lua/base46/integrations/diffview.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
local colors = require("base46").get_theme_tb "base_30"
local mix_col = require("base46.colors").mix

local highligths = {
DiffviewDiffAdd = { bg = mix_col(colors.green, colors.black, 85) },
DiffviewDiffText = { bg = mix_col(colors.green, colors.black, 70) },
DiffviewDiffChange = { bg = mix_col(colors.green, colors.black, 85) },
DiffviewDiffDelete = { bg = mix_col(colors.red, colors.black, 70) },
DiffviewDiffDeleteDim = { bg = mix_col(colors.red, colors.black, 85) },
DiffviewDiffAddAsDelete = { bg = mix_col(colors.red, colors.black, 85) },
}

return highligths

0 comments on commit f006ffd

Please sign in to comment.