diff options
author | Eric Pershke <erson.99.cool@gmail.com> | 2025-01-25 16:31:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-25 14:31:04 +0100 |
commit | 9088d0c19ff9015a566198a0b4406fcba0f89c1f (patch) | |
tree | 81ae34f48f120a352711f493a1ce33f7eb9d9388 /lua/no-clown-fiesta | |
parent | 6453c0ca2f31607829457694b4208c1f612fdd61 (diff) |
Add diffview plugin support (#51)
Diffstat (limited to 'lua/no-clown-fiesta')
-rw-r--r-- | lua/no-clown-fiesta/groups/diffview.lua | 10 | ||||
-rw-r--r-- | lua/no-clown-fiesta/groups/highlights.lua | 2 | ||||
-rw-r--r-- | lua/no-clown-fiesta/groups/init.lua | 1 |
3 files changed, 12 insertions, 1 deletions
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", } |