From ce8964e575e35cbcfc9ccd0f60fd1306315d210a Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Fri, 8 Dec 2023 19:14:03 +0100 Subject: [PATCH] fix(hlgroups): better diff highlights --- lua/leaf/hlgroups.lua | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lua/leaf/hlgroups.lua b/lua/leaf/hlgroups.lua index 655c7dc..55439b2 100644 --- a/lua/leaf/hlgroups.lua +++ b/lua/leaf/hlgroups.lua @@ -19,10 +19,10 @@ function M.setup(colors, config) CursorColumn = { link = "CursorLine" }, CursorLine = { bg = colors.bg1 }, Directory = { fg = colors.green1 }, - DiffAdd = { fg = colors.green0, bg = colors.bg0 }, - DiffChange = { fg = colors.blue0, bg = colors.bg0 }, - DiffDelete = { fg = colors.red0, bg = colors.bg0 }, - DiffText = { link = "Normal" }, + DiffAdd = { bg = colors.green1, fg = colors.fg1 }, + DiffChange = { bg = colors.bg1 }, + DiffDelete = { bg = colors.red1, fg = colors.fg1 }, + DiffText = { bg = colors.aqua1, fg = colors.fg1 }, EndOfBuffer = { fg = colors.bg0 }, TermCursor = { link = "Cursor" }, TermCursorNC = { fg = colors.bg1 }, @@ -173,6 +173,11 @@ function M.setup(colors, config) ["@text.warning"] = { link = "Warning" }, ["@text.danger"] = { link = "Error" }, ["@todo"] = { link = "Todo" }, + -- diff --------------------------------------------------------------------- red -- + ["@text.diff.add"] = { link = "DiffAdd" }, + ["@text.diff.change"] = { link = "DiffChange" }, + ["@text.diff.delete"] = { link = "DiffDelete" }, + ["@text.diff.text"] = { link = "DiffText" }, ------------------------------------------------------------------------------------ -- Diagnostics ------------------------------------------------------------------------------------