refactor(gitsigns): avoid redundant links

The `SignAdd`, `SignChange`, and `SignDelete` are never referenced by
any other highlight definitions than the previous `GitSigns` ones before
this change.

The isolated definitions are only left for backward compatibility.
This commit is contained in:
aileot 2025-02-02 14:00:59 +09:00
commit 977b622866

View file

@ -451,9 +451,9 @@ local function set_highlights()
BufferVisibleTarget = { fg = palette.gold },
-- lewis6991/gitsigns.nvim
GitSignsAdd = { link = "SignAdd" },
GitSignsChange = { link = "SignChange" },
GitSignsDelete = { link = "SignDelete" },
GitSignsAdd = { fg = groups.git_add, bg = "NONE" },
GitSignsChange = { fg = groups.git_change, bg = "NONE" },
GitSignsDelete = { fg = groups.git_delete, bg = "NONE" },
SignAdd = { fg = groups.git_add, bg = "NONE" },
SignChange = { fg = groups.git_change, bg = "NONE" },
SignDelete = { fg = groups.git_delete, bg = "NONE" },