Skip to content

Commit c7b66be

Browse files
authored
feat: DiagnosticOk (#142)
1 parent bf84430 commit c7b66be

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

lua/zenbones/specs/dark.lua

+4
Original file line numberDiff line numberDiff line change
@@ -168,23 +168,27 @@ local function generate(p, opt)
168168
DiagnosticWarn { WarningMsg },
169169
DiagnosticInfo { fg = p.water },
170170
DiagnosticHint { fg = p.blossom },
171+
DiagnosticOk { fg = p.leaf },
171172
DiagnosticDeprecated { DiagnosticWarn },
172173
DiagnosticUnnecessary { DiagnosticWarn },
173174

174175
DiagnosticSignError { SignColumn, fg = DiagnosticError.fg },
175176
DiagnosticSignWarn { SignColumn, fg = DiagnosticWarn.fg },
176177
DiagnosticSignInfo { SignColumn, fg = DiagnosticInfo.fg },
177178
DiagnosticSignHint { SignColumn, fg = DiagnosticHint.fg },
179+
DiagnosticSignOk { SignColumn, fg = DiagnosticOk.fg },
178180

179181
DiagnosticVirtualTextError { DiagnosticError, bg = DiagnosticError.fg.saturation(8).lightness(p1.bg.l + 4) },
180182
DiagnosticVirtualTextWarn { DiagnosticWarn, bg = DiagnosticWarn.fg.saturation(8).lightness(p1.bg.l + 4) },
181183
DiagnosticVirtualTextInfo { DiagnosticInfo, bg = DiagnosticInfo.fg.saturation(8).lightness(p1.bg.l + 4) },
182184
DiagnosticVirtualTextHint { DiagnosticHint, bg = DiagnosticHint.fg.saturation(8).lightness(p1.bg.l + 4) },
185+
DiagnosticVirtualTextOk { DiagnosticOk, bg = DiagnosticOk.fg.saturation(8).lightness(p1.bg.l + 4) },
183186

184187
DiagnosticUnderlineError { fg = opt.colorize_diagnostic_underline_text and DiagnosticError.fg or "NONE", gui = "undercurl", sp = DiagnosticError.fg },
185188
DiagnosticUnderlineWarn { fg = opt.colorize_diagnostic_underline_text and DiagnosticWarn.fg or "NONE", gui = "undercurl", sp = DiagnosticWarn.fg },
186189
DiagnosticUnderlineInfo { fg = opt.colorize_diagnostic_underline_text and DiagnosticInfo.fg or "NONE", gui = "undercurl", sp = DiagnosticInfo.fg },
187190
DiagnosticUnderlineHint { fg = opt.colorize_diagnostic_underline_text and DiagnosticHint.fg or "NONE", gui = "undercurl", sp = DiagnosticHint.fg },
191+
DiagnosticUnderlineOk { fg = opt.colorize_diagnostic_underline_text and DiagnosticOk.fg or "NONE", gui = "undercurl", sp = DiagnosticOk.fg },
188192

189193
-- Tree-sitter
190194
sym "@annotation" { PreProc },

lua/zenbones/specs/light.lua

+6-2
Original file line numberDiff line numberDiff line change
@@ -168,23 +168,27 @@ local function generate(p, opt)
168168
DiagnosticWarn { WarningMsg },
169169
DiagnosticInfo { fg = p.water },
170170
DiagnosticHint { fg = p.blossom },
171+
DiagnosticOk { fg = p.leaf },
171172
DiagnosticDeprecated { DiagnosticWarn },
172173
DiagnosticUnnecessary { DiagnosticWarn },
173174

174175
DiagnosticSignError { SignColumn, fg = DiagnosticError.fg },
175176
DiagnosticSignWarn { SignColumn, fg = DiagnosticWarn.fg },
176177
DiagnosticSignInfo { SignColumn, fg = DiagnosticInfo.fg },
177178
DiagnosticSignHint { SignColumn, fg = DiagnosticHint.fg },
179+
DiagnosticSignOk { SignColumn, fg = DiagnosticOk.fg },
178180

179181
DiagnosticVirtualTextError { DiagnosticError, bg = DiagnosticError.fg.saturation(42).lightness(p1.bg.l - 4) },
180-
DiagnosticVirtualTextWarn { DiagnosticWarn, bg = DiagnosticWarn.fg.saturation(42).lightness(p1.bg.l - 4)},
182+
DiagnosticVirtualTextWarn { DiagnosticWarn, bg = DiagnosticWarn.fg.saturation(42).lightness(p1.bg.l - 4) },
181183
DiagnosticVirtualTextInfo { DiagnosticInfo, bg = DiagnosticInfo.fg.saturation(42).lightness(p1.bg.l - 4) },
182-
DiagnosticVirtualTextHint { DiagnosticHint, bg = DiagnosticHint.fg.saturation(42).lightness(p1.bg.l - 4)},
184+
DiagnosticVirtualTextHint { DiagnosticHint, bg = DiagnosticHint.fg.saturation(42).lightness(p1.bg.l - 4) },
185+
DiagnosticVirtualTextOk { DiagnosticOk, bg = DiagnosticOk.fg.saturation(42).lightness(p1.bg.l - 4) },
183186

184187
DiagnosticUnderlineError { fg = opt.colorize_diagnostic_underline_text and DiagnosticError.fg or "NONE", gui = "undercurl", sp = DiagnosticError.fg },
185188
DiagnosticUnderlineWarn { fg = opt.colorize_diagnostic_underline_text and DiagnosticWarn.fg or "NONE", gui = "undercurl", sp = DiagnosticWarn.fg },
186189
DiagnosticUnderlineInfo { fg = opt.colorize_diagnostic_underline_text and DiagnosticInfo.fg or "NONE", gui = "undercurl", sp = DiagnosticInfo.fg },
187190
DiagnosticUnderlineHint { fg = opt.colorize_diagnostic_underline_text and DiagnosticHint.fg or "NONE", gui = "undercurl", sp = DiagnosticHint.fg },
191+
DiagnosticUnderlineOk { fg = opt.colorize_diagnostic_underline_text and DiagnosticOk.fg or "NONE", gui = "undercurl", sp = DiagnosticOk.fg },
188192

189193
-- Tree-sitter
190194
sym "@annotation" { PreProc },

0 commit comments

Comments
 (0)