From 6bd5e486554a44f23e64ec419fa9f4eef4b22a10 Mon Sep 17 00:00:00 2001 From: Tyler Hallada Date: Fri, 1 Dec 2023 15:26:01 -0500 Subject: [PATCH] Add back my gruvbox diff color hack Since my PR was reverted. --- after/plugin/gruvbox.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 after/plugin/gruvbox.lua diff --git a/after/plugin/gruvbox.lua b/after/plugin/gruvbox.lua new file mode 100644 index 0000000..2a04365 --- /dev/null +++ b/after/plugin/gruvbox.lua @@ -0,0 +1,16 @@ +local colors = require("gruvbox.palette").colors; + +function FixGruvbox() + vim.api.nvim_set_hl(0, 'DiffviewDiffAddAsDelete', { bg = "#431313" }) + vim.api.nvim_set_hl(0, 'DiffDelete', { bg = "none", fg = colors.dark2 }) + vim.api.nvim_set_hl(0, 'DiffviewDiffDelete', { bg = "none", fg = colors.dark2 }) + vim.api.nvim_set_hl(0, 'DiffAdd', { bg = "#142a03" }) + vim.api.nvim_set_hl(0, 'DiffChange', { bg = "#3B3307" }) + vim.api.nvim_set_hl(0, 'DiffText', { bg = "#4D520D" }) +end +FixGruvbox() + +vim.api.nvim_create_autocmd( + "ColorScheme", + { pattern = { "gruvbox" }, callback = FixGruvbox } +)