From 9088d0c19ff9015a566198a0b4406fcba0f89c1f Mon Sep 17 00:00:00 2001 From: Eric Pershke Date: Sat, 25 Jan 2025 16:31:04 +0300 Subject: Add diffview plugin support (#51) --- lua/no-clown-fiesta/groups/diffview.lua | 10 ++++++++++ lua/no-clown-fiesta/groups/highlights.lua | 2 +- lua/no-clown-fiesta/groups/init.lua | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 lua/no-clown-fiesta/groups/diffview.lua (limited to 'lua') diff --git a/lua/no-clown-fiesta/groups/diffview.lua b/lua/no-clown-fiesta/groups/diffview.lua new file mode 100644 index 0000000..f186b6b --- /dev/null +++ b/lua/no-clown-fiesta/groups/diffview.lua @@ -0,0 +1,10 @@ +local M = {} + +function M.highlight(palette, opts) + return { + DiffviewFilePanelInsertions = { fg = palette.sign_add, bold = true }, + DiffviewFilePanelDeletions = { fg = palette.sign_delete, bold = true }, + } +end + +return M diff --git a/lua/no-clown-fiesta/groups/highlights.lua b/lua/no-clown-fiesta/groups/highlights.lua index ffefd44..04e9f9b 100644 --- a/lua/no-clown-fiesta/groups/highlights.lua +++ b/lua/no-clown-fiesta/groups/highlights.lua @@ -51,7 +51,7 @@ function M.highlight(palette, opts) VisualNOS = { bg = palette.alt_bg }, WarningMsg = { fg = palette.error, bg = palette.bg }, DiffAdd = { bg = palette.accent_green }, - DiffText = { bg = palette.accent_blue }, + DiffText = { fg = palette.fg, bg = palette.sign_change }, Changed = { fg = palette.sign_change, }, diff --git a/lua/no-clown-fiesta/groups/init.lua b/lua/no-clown-fiesta/groups/init.lua index a5849ed..13e7809 100644 --- a/lua/no-clown-fiesta/groups/init.lua +++ b/lua/no-clown-fiesta/groups/init.lua @@ -23,4 +23,5 @@ return { require "no-clown-fiesta.groups.telescope", require "no-clown-fiesta.groups.treesitter", require "no-clown-fiesta.groups.whichkey", + require "no-clown-fiesta.groups.diffview", } -- cgit v1.2.3-70-g09d2