1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
local colors = require "prismite.palette"
local utils = require "prismite.utils"
local opacity = 0.1
return {
DiagnosticError = { fg = colors.red },
DiagnosticUnderlineError = { sp = colors.red, undercurl = true },
DiagnosticVirtualTextError = { bg = utils.overlay_oklch(colors.red, colors.bg, opacity), fg = colors.red },
DiagnosticWarn = { fg = colors.orange },
DiagnosticUnderlineWarn = { sp = colors.orange, undercurl = true },
DiagnosticVirtualTextWarn = { bg = utils.overlay_oklch(colors.orange, colors.bg, opacity), fg = colors.orange },
DiagnosticInfo = { fg = colors.blue },
DiagnosticUnderlineInfo = { sp = colors.blue, underline = true },
DiagnosticVirtualTextInfo = { bg = utils.overlay_oklch(colors.blue, colors.bg, opacity), fg = colors.blue },
DiagnosticHint = { fg = colors.purple },
DiagnosticUnderlineHint = { sp = colors.purple, underline = true },
DiagnosticVirtualTextHint = { bg = utils.overlay_oklch(colors.purple, colors.bg, opacity), fg = colors.purple },
DiagnosticOk = { fg = colors.green },
DiagnosticUnderlineOk = { sp = colors.green, underline = true },
DiagnosticVirtualTextOk = { bg = utils.overlay_oklch(colors.green, colors.bg, opacity), fg = colors.green },
}
|