From d80388a32f0dbc7b94b4d690cc47eace74916190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C3=A0n?= Date: Mon, 18 Dec 2023 00:06:53 +0800 Subject: [PATCH] fix test --- lua/moonwalk/schemes/diagnostic.lua | 4 ++-- lua/moonwalk/schemes/gitsigns.lua | 2 ++ test/highlights_spec.lua | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lua/moonwalk/schemes/diagnostic.lua b/lua/moonwalk/schemes/diagnostic.lua index 14d72c4..1c59516 100644 --- a/lua/moonwalk/schemes/diagnostic.lua +++ b/lua/moonwalk/schemes/diagnostic.lua @@ -2,8 +2,8 @@ function diagnostic(opts, c) return { DiagnosticError = { fg = c.red_bold }, DiagnosticWarn = { fg = c.gold_bold }, - DiagnosticInfo = { fg = c.fg_soft }, - DiagnosticHint = { fg = c.primary }, + DiagnosticInfo = { fg = c.primary_bold }, + DiagnosticHint = { fg = c.fg_soft }, DiagnosticOk = { fg = c.green_bold }, DiagnosticUnderlineError = { sp = c.red_bolder, underline = true }, DiagnosticUnderlineWarn = { sp = c.gold_bolder, underline = true }, diff --git a/lua/moonwalk/schemes/gitsigns.lua b/lua/moonwalk/schemes/gitsigns.lua index 5cbef82..0b812b5 100644 --- a/lua/moonwalk/schemes/gitsigns.lua +++ b/lua/moonwalk/schemes/gitsigns.lua @@ -1,7 +1,9 @@ function gitsigns(opts, c) return { + GitSignsAdd = { fg = c.green_soft }, GitSignsAddNr = { fg = c.green_softer, bg = c.none }, GitSignsAddLn = { bg = c.green_bg }, + GitSignsChange = { fg = c.gold_bolder }, GitSignsChangeNr = { fg = c.green_softer, bg = c.none }, GitSignsChangeLn = { bg = c.green_bg }, GitSignsDeleteNr = { fg = c.red_soft, bg = c.none }, diff --git a/test/highlights_spec.lua b/test/highlights_spec.lua index 19a9a87..77e5582 100644 --- a/test/highlights_spec.lua +++ b/test/highlights_spec.lua @@ -53,7 +53,9 @@ local NON_TEXT = { 'VertSplit', 'Folded', 'IblScope', + 'GitSignsChange', 'GitSignsChangeNr', + 'GitSignsAdd', 'GitSignsAddNr', } @@ -166,6 +168,7 @@ do '@comment.documentation', '@lsp.type.comment', '@conceal', + '@conceal.json', '@punctuation.special', '@string.documentation', '@error',