From 16f4532d53c6c27cb5d89e83cdd2cd5e595fb577 Mon Sep 17 00:00:00 2001 From: Michael Chris Lopez Date: Sun, 14 Nov 2021 11:39:29 +0800 Subject: [PATCH] colorize only the underline/undercurl in DiagnosticUnderline --- lua/zenbones/specs/dark.lua | 8 ++++---- lua/zenbones/specs/light.lua | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lua/zenbones/specs/dark.lua b/lua/zenbones/specs/dark.lua index 1526ffc..8972cbb 100644 --- a/lua/zenbones/specs/dark.lua +++ b/lua/zenbones/specs/dark.lua @@ -184,10 +184,10 @@ local function generate(p, opt) DiagnosticVirtualTextError { DiagnosticError, bg = DiagnosticError.fg.saturation(8).lightness(p1.bg.l + 4) }, DiagnosticVirtualTextWarn { DiagnosticWarn, bg = DiagnosticWarn.fg.saturation(8).lightness(p1.bg.l + 4) }, - DiagnosticUnderlineError { DiagnosticError, gui = "undercurl" }, - DiagnosticUnderlineWarn { DiagnosticWarn, gui = "undercurl" }, - DiagnosticUnderlineInfo { DiagnosticInfo, gui = "undercurl" }, - DiagnosticUnderlineHint { DiagnosticHint, gui = "undercurl" }, + DiagnosticUnderlineError { gui = "undercurl", sp = DiagnosticError.fg }, + DiagnosticUnderlineWarn { gui = "undercurl", sp = DiagnosticWarn.fg }, + DiagnosticUnderlineInfo { gui = "undercurl", sp = DiagnosticInfo.fg }, + DiagnosticUnderlineHint { gui = "undercurl", sp = DiagnosticHint.fg }, -- These groups are for the neovim tree-sitter highlights. -- As of writing, tree-sitter support is a WIP, group names may change. diff --git a/lua/zenbones/specs/light.lua b/lua/zenbones/specs/light.lua index 079d67a..3b3bbbf 100644 --- a/lua/zenbones/specs/light.lua +++ b/lua/zenbones/specs/light.lua @@ -89,10 +89,10 @@ local function generate(p, opt) MatchParen { Search }, -- The character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt| -- QuickFixLine { }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there. - SpellBad { fg = Error.fg.de(30), gui = "undercurl", guisp = Error.fg }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise. - SpellCap { SpellBad, guisp = Error.fg.li(10) }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise. + SpellBad { fg = Error.fg.de(30), gui = "undercurl", sp = Error.fg }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise. + SpellCap { SpellBad, sp = Error.fg.li(10) }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise. SpellLocal { SpellCap }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise. - SpellRare { SpellBad, guisp = p.wood }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise. + SpellRare { SpellBad, sp = p.wood }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise. StatusLine { bg = p1.bg.da(14), fg = p.fg }, -- status line of current window StatusLineNC { bg = p1.bg.da(10), fg = p.fg.li(28) }, -- status lines of not-current windows Note: if this is equal to "StatusLine" Vim will use "^^^" in the status line of the current window. @@ -184,10 +184,10 @@ local function generate(p, opt) DiagnosticVirtualTextError { DiagnosticError, bg = DiagnosticError.fg.saturation(42).lightness(p1.bg.l - 4) }, DiagnosticVirtualTextWarn { DiagnosticWarn, bg = DiagnosticWarn.fg.saturation(42).lightness(p1.bg.l - 4)}, - DiagnosticUnderlineError { DiagnosticError, gui = "undercurl" }, - DiagnosticUnderlineWarn { DiagnosticWarn, gui = "undercurl" }, - DiagnosticUnderlineInfo { DiagnosticInfo, gui = "undercurl" }, - DiagnosticUnderlineHint { DiagnosticHint, gui = "undercurl" }, + DiagnosticUnderlineError { gui = "undercurl", sp = DiagnosticError.fg }, + DiagnosticUnderlineWarn { gui = "undercurl", sp = DiagnosticWarn.fg }, + DiagnosticUnderlineInfo { gui = "undercurl", sp = DiagnosticInfo.fg }, + DiagnosticUnderlineHint { gui = "undercurl", sp = DiagnosticHint.fg }, -- These groups are for the neovim tree-sitter highlights. -- As of writing, tree-sitter support is a WIP, group names may change.