Refacto palette and theme, added more colors
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
return function(palette)
|
||||
---@param theme Theme
|
||||
---@param palette Palette
|
||||
return function(theme, palette)
|
||||
return {
|
||||
Boolean = { fg = palette.yellow, bg = palette.none },
|
||||
Character = { link = "String" },
|
||||
@@ -36,20 +38,20 @@ return function(palette)
|
||||
Typedef = { link = "Keyword" },
|
||||
|
||||
-- Diags
|
||||
DiagnosticError = { fg = palette.red },
|
||||
DiagnosticHint = { fg = palette.aqua },
|
||||
DiagnosticInfo = { fg = palette.blue },
|
||||
DiagnosticWarn = { fg = palette.yellow },
|
||||
DiagnosticError = theme.msg.error,
|
||||
DiagnosticHint = theme.msg.hint,
|
||||
DiagnosticInfo = theme.msg.info,
|
||||
DiagnosticWarn = theme.msg.warning,
|
||||
DiagnosticUnderlineError = { sp = palette.red, undercurl = true },
|
||||
DiagnosticUnderlineHint = { sp = palette.aqua, undercurl = true },
|
||||
DiagnosticUnderlineInfo = { sp = palette.blue, undercurl = true },
|
||||
DiagnosticUnderlineWarn = { sp = palette.yellow, undercurl = true },
|
||||
LspInlayHint = { fg = palette.other.conceal, bg = palette.other.hard_bg },
|
||||
LspInlayHint = theme.conceal,
|
||||
LspCodeLens = { link = "LspInlayHint" },
|
||||
LspCodeLensSeparator = { link = "LspCodeLens" },
|
||||
LspReferenceRead = { fg = palette.none, bg = palette.harder_bg },
|
||||
LspReferenceRead = theme.active,
|
||||
LspReferenceWrite = { fg = palette.none, bg = palette.harder_bg },
|
||||
LspReferenceText = { fg = palette.none, bg = palette.softer_bg }, -- TODO Keep different?
|
||||
LspReferenceText = theme.active,
|
||||
|
||||
["@annotation"] = { fg = palette.yellow },
|
||||
["@attribute"] = { fg = palette.yellow },
|
||||
|
||||
Reference in New Issue
Block a user