summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Pershke <erson.99.cool@gmail.com>2025-01-25 16:31:04 +0300
committerGitHub <noreply@github.com>2025-01-25 14:31:04 +0100
commit9088d0c19ff9015a566198a0b4406fcba0f89c1f (patch)
tree81ae34f48f120a352711f493a1ce33f7eb9d9388
parent6453c0ca2f31607829457694b4208c1f612fdd61 (diff)
Add diffview plugin support (#51)
-rw-r--r--README.md1
-rw-r--r--doc/no-clown-fiesta.txt2
-rw-r--r--lua/no-clown-fiesta/groups/diffview.lua10
-rw-r--r--lua/no-clown-fiesta/groups/highlights.lua2
-rw-r--r--lua/no-clown-fiesta/groups/init.lua1
5 files changed, 14 insertions, 2 deletions
diff --git a/README.md b/README.md
index 4783266..1597d8e 100644
--- a/README.md
+++ b/README.md
@@ -105,3 +105,4 @@ Other plugin managers are left as an exercise to the reader.
- Treesitter
- WhichKey
- mini.statusline
+- DiffView
diff --git a/doc/no-clown-fiesta.txt b/doc/no-clown-fiesta.txt
index afaf841..b7d09bb 100644
--- a/doc/no-clown-fiesta.txt
+++ b/doc/no-clown-fiesta.txt
@@ -61,4 +61,4 @@ SUPPORTED PLUGINS *no-clown-fiesta-supported_plugin
* StatusLine (the default non custom one)
* WhichKey
* Mini.statusline
-
+* DiffView
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",
}