Skip to content

Commit

Permalink
feat: DiagnosticOk (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcchrish authored Oct 30, 2023
1 parent bf84430 commit c7b66be
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions lua/zenbones/specs/dark.lua
Original file line number Diff line number Diff line change
Expand Up @@ -168,23 +168,27 @@ local function generate(p, opt)
DiagnosticWarn { WarningMsg },
DiagnosticInfo { fg = p.water },
DiagnosticHint { fg = p.blossom },
DiagnosticOk { fg = p.leaf },
DiagnosticDeprecated { DiagnosticWarn },
DiagnosticUnnecessary { DiagnosticWarn },

DiagnosticSignError { SignColumn, fg = DiagnosticError.fg },
DiagnosticSignWarn { SignColumn, fg = DiagnosticWarn.fg },
DiagnosticSignInfo { SignColumn, fg = DiagnosticInfo.fg },
DiagnosticSignHint { SignColumn, fg = DiagnosticHint.fg },
DiagnosticSignOk { SignColumn, fg = DiagnosticOk.fg },

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

DiagnosticUnderlineError { fg = opt.colorize_diagnostic_underline_text and DiagnosticError.fg or "NONE", gui = "undercurl", sp = DiagnosticError.fg },
DiagnosticUnderlineWarn { fg = opt.colorize_diagnostic_underline_text and DiagnosticWarn.fg or "NONE", gui = "undercurl", sp = DiagnosticWarn.fg },
DiagnosticUnderlineInfo { fg = opt.colorize_diagnostic_underline_text and DiagnosticInfo.fg or "NONE", gui = "undercurl", sp = DiagnosticInfo.fg },
DiagnosticUnderlineHint { fg = opt.colorize_diagnostic_underline_text and DiagnosticHint.fg or "NONE", gui = "undercurl", sp = DiagnosticHint.fg },
DiagnosticUnderlineOk { fg = opt.colorize_diagnostic_underline_text and DiagnosticOk.fg or "NONE", gui = "undercurl", sp = DiagnosticOk.fg },

-- Tree-sitter
sym "@annotation" { PreProc },
Expand Down
8 changes: 6 additions & 2 deletions lua/zenbones/specs/light.lua
Original file line number Diff line number Diff line change
Expand Up @@ -168,23 +168,27 @@ local function generate(p, opt)
DiagnosticWarn { WarningMsg },
DiagnosticInfo { fg = p.water },
DiagnosticHint { fg = p.blossom },
DiagnosticOk { fg = p.leaf },
DiagnosticDeprecated { DiagnosticWarn },
DiagnosticUnnecessary { DiagnosticWarn },

DiagnosticSignError { SignColumn, fg = DiagnosticError.fg },
DiagnosticSignWarn { SignColumn, fg = DiagnosticWarn.fg },
DiagnosticSignInfo { SignColumn, fg = DiagnosticInfo.fg },
DiagnosticSignHint { SignColumn, fg = DiagnosticHint.fg },
DiagnosticSignOk { SignColumn, fg = DiagnosticOk.fg },

DiagnosticVirtualTextError { DiagnosticError, bg = DiagnosticError.fg.saturation(42).lightness(p1.bg.l - 4) },
DiagnosticVirtualTextWarn { DiagnosticWarn, bg = DiagnosticWarn.fg.saturation(42).lightness(p1.bg.l - 4)},
DiagnosticVirtualTextWarn { DiagnosticWarn, bg = DiagnosticWarn.fg.saturation(42).lightness(p1.bg.l - 4) },
DiagnosticVirtualTextInfo { DiagnosticInfo, bg = DiagnosticInfo.fg.saturation(42).lightness(p1.bg.l - 4) },
DiagnosticVirtualTextHint { DiagnosticHint, bg = DiagnosticHint.fg.saturation(42).lightness(p1.bg.l - 4)},
DiagnosticVirtualTextHint { DiagnosticHint, bg = DiagnosticHint.fg.saturation(42).lightness(p1.bg.l - 4) },
DiagnosticVirtualTextOk { DiagnosticOk, bg = DiagnosticOk.fg.saturation(42).lightness(p1.bg.l - 4) },

DiagnosticUnderlineError { fg = opt.colorize_diagnostic_underline_text and DiagnosticError.fg or "NONE", gui = "undercurl", sp = DiagnosticError.fg },
DiagnosticUnderlineWarn { fg = opt.colorize_diagnostic_underline_text and DiagnosticWarn.fg or "NONE", gui = "undercurl", sp = DiagnosticWarn.fg },
DiagnosticUnderlineInfo { fg = opt.colorize_diagnostic_underline_text and DiagnosticInfo.fg or "NONE", gui = "undercurl", sp = DiagnosticInfo.fg },
DiagnosticUnderlineHint { fg = opt.colorize_diagnostic_underline_text and DiagnosticHint.fg or "NONE", gui = "undercurl", sp = DiagnosticHint.fg },
DiagnosticUnderlineOk { fg = opt.colorize_diagnostic_underline_text and DiagnosticOk.fg or "NONE", gui = "undercurl", sp = DiagnosticOk.fg },

-- Tree-sitter
sym "@annotation" { PreProc },
Expand Down

0 comments on commit c7b66be

Please sign in to comment.