summaryrefslogtreecommitdiff
path: root/lua/no-clown-fiesta/neogit.lua
diff options
context:
space:
mode:
authoraktersnurra <gustaf.rydholm@gmail.com>2022-07-29 17:51:29 +0200
committerGitHub <noreply@github.com>2022-07-29 17:51:29 +0200
commit85d7d7de20b6330528c5b7c0243c3afcc5266711 (patch)
tree5731a5f2c934fe2da5b79aef24f708590af67ae0 /lua/no-clown-fiesta/neogit.lua
parentda502c2571b710791b29c82a77cbe577791b14df (diff)
Update configuration api (#5)
* Refactor * Fix opts * Fix plugin typos * Update readme
Diffstat (limited to 'lua/no-clown-fiesta/neogit.lua')
-rw-r--r--lua/no-clown-fiesta/neogit.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/lua/no-clown-fiesta/neogit.lua b/lua/no-clown-fiesta/neogit.lua
new file mode 100644
index 0000000..40917c1
--- /dev/null
+++ b/lua/no-clown-fiesta/neogit.lua
@@ -0,0 +1,24 @@
+local M = {}
+
+function M.highlight(palette)
+ return {
+ NeogitNotificationInfo = { fg = palette.sign_add },
+ NeogitNotificationWarning = { fg = palette.warning_orange },
+ NeogitNotificationError = { fg = palette.sign_delete },
+ NeogitDiffAddHighlight = {
+ fg = palette.sign_add,
+ bg = palette.neogit_light_green,
+ },
+ NeogitDiffDeleteHighlight = {
+ fg = palette.sign_delete,
+ bg = palette.neogit_light_red,
+ },
+ NeogitDiffpaletteontextHighlight = { fg = palette.fg, bg = palette.accent },
+ NeogitHunkHeader = { fg = palette.fg, bg = palette.alt_bg },
+ NeogitHunkHeaderHighlight = { fg = palette.fg, bg = palette.gray },
+ NeogitDiffAdd = { fg = palette.sign_add, bg = palette.neogit_green },
+ NeogitDiffDelete = { fg = palette.sign_delete, bg = palette.neogit_red },
+ }
+end
+
+return M