Skip to content

Commit

Permalink
update gitsigns
Browse files Browse the repository at this point in the history
  • Loading branch information
theJian committed Dec 18, 2023
1 parent e1f840c commit 6927f54
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
6 changes: 2 additions & 4 deletions lua/moonwalk/palette/light.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,10 @@ M.default = {
purple_bold = C.purple_bold,
purple = C.purple,

diff_add = C.green_softer,
diff_delete = C.red_soft,
diff_add = C.green_bg,
diff_delete = C.red_bg,
diff_change = C.green_bg,
diff_text = C.green_softer,
diff_added = C.green,
diff_removed = C.red,

search = C.gold_bg,
inc_search = C.gold_soft,
Expand Down
10 changes: 5 additions & 5 deletions lua/moonwalk/schemes/base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ local function base(opts, c)
DiffChange = { bg = c.diff_change },
DiffDelete = { bg = c.diff_delete },
DiffText = { bg = c.diff_text },
DiffAdded = { fg = c.diff_added, bg = c.green_bg },
DiffRemoved = { fg = c.diff_removed, bg = c.red_bg },
DiffChanged = { fg = c.diff_added, bg = c.green_bg },
DiffOldFile = { fg = c.diff_removed, bold = true, underline = true },
DiffNewFile = { fg = c.diff_added, bold = true, underline = true },
DiffAdded = { fg = c.green, bg = c.diff_add },
DiffRemoved = { fg = c.red, bg = c.diff_delete },
DiffChanged = { fg = c.green, bg = c.diff_change },
DiffOldFile = { fg = c.red, bold = true, underline = true },
DiffNewFile = { fg = c.green, bold = true, underline = true },
DiffFile = { fg = c.purple },
DiffLine = { fg = c.purple },
DiffIndexLine = { fg = c.purple },
Expand Down
19 changes: 10 additions & 9 deletions lua/moonwalk/schemes/gitsigns.lua
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
function gitsigns(opts, c)
return {
GitSignsAdd = { fg = c.green_soft },
GitSignsAddNr = { fg = c.green_soft },
GitSignsAddInline = { link = 'DiffText' },
GitSignsAddLn = { bg = c.green_bg },
GitSignsAddNr = { fg = c.green_soft },
GitSignsAddPreview = { link = 'DiffAdd' },
GitSignsAddVirtLnInline = { link = 'DiffText' },
GitSignsChange = { fg = c.gold_bolder },
GitSignsChangeNr = { fg = c.gold_softer },
GitSignsChangeInline = { link = 'DiffText' },
GitSignsChangeLn = { bg = c.gold_bg },
GitSignsChangeNr = { fg = c.gold_softer },
GitSignsChangeVirtLnInline = { link = 'DiffText' },
GitSignsDelete = { fg = c.red_bolder },
GitSignsDeleteInline = { bg = c.red_soft },
GitSignsDeleteNr = { fg = c.red_soft, bg = c.none },
GitSignsAddPreview = { link = 'DiffAdded' },
GitSignsDeletePreview = { link = 'DiffRemoved' },
GitSignsAddInline = { link = 'DiffAdd' },
GitSignsDeleteInline = { link = 'DiffDelete' },
GitSignsChangeInline = { link = 'DiffChange' },
GitSignsDeleteVirtLn = { link = 'DiffRemoved' },
GitSignsDeleteVirtLnInLine = { link = 'DiffRemoved' },
GitSignsDeletePreview = { link = 'DiffDelete' },
GitSignsDeleteVirtLn = { link = 'DiffDelete' },
}
end

Expand Down

0 comments on commit 6927f54

Please sign in to comment.