fix: sign hl groups base on SignColumn
This commit is contained in:
@@ -175,10 +175,10 @@ local function generate(p, opt)
|
|||||||
DiagnosticInfo { fg = p.water },
|
DiagnosticInfo { fg = p.water },
|
||||||
DiagnosticHint { fg = p.blossom },
|
DiagnosticHint { fg = p.blossom },
|
||||||
|
|
||||||
DiagnosticSignError { LineNr, fg = DiagnosticError.fg },
|
DiagnosticSignError { SignColumn, fg = DiagnosticError.fg },
|
||||||
DiagnosticSignWarn { LineNr, fg = DiagnosticWarn.fg },
|
DiagnosticSignWarn { SignColumn, fg = DiagnosticWarn.fg },
|
||||||
DiagnosticSignInfo { LineNr, fg = DiagnosticInfo.fg },
|
DiagnosticSignInfo { SignColumn, fg = DiagnosticInfo.fg },
|
||||||
DiagnosticSignHint { LineNr, fg = DiagnosticHint.fg },
|
DiagnosticSignHint { SignColumn, fg = DiagnosticHint.fg },
|
||||||
|
|
||||||
DiagnosticVirtualTextError { DiagnosticError, bg = p.rose.saturation(12).lightness(Normal.bg.l + 2) },
|
DiagnosticVirtualTextError { DiagnosticError, bg = p.rose.saturation(12).lightness(Normal.bg.l + 2) },
|
||||||
DiagnosticVirtualTextWarn { DiagnosticWarn, bg = p.wood.saturation(12).lightness(Normal.bg.l + 2) },
|
DiagnosticVirtualTextWarn { DiagnosticWarn, bg = p.wood.saturation(12).lightness(Normal.bg.l + 2) },
|
||||||
@@ -318,10 +318,10 @@ local function generate(p, opt)
|
|||||||
BufferVisibleSign { fg = StatusLineNC.fg },
|
BufferVisibleSign { fg = StatusLineNC.fg },
|
||||||
BufferVisibleIndex { fg = StatusLineNC.fg },
|
BufferVisibleIndex { fg = StatusLineNC.fg },
|
||||||
|
|
||||||
CocErrorSign { DiagnosticError },
|
CocErrorSign { DiagnosticSignError },
|
||||||
CocWarningSign { DiagnosticWarn },
|
CocWarningSign { DiagnosticSignWarn },
|
||||||
CocInfoSign { DiagnosticInfo },
|
CocInfoSign { DiagnosticSignInfo },
|
||||||
CocHintSign { DiagnosticHint },
|
CocHintSign { DiagnosticSignHint },
|
||||||
CocErrorHighlight { DiagnosticUnderlineError },
|
CocErrorHighlight { DiagnosticUnderlineError },
|
||||||
CocWarningHighlight { DiagnosticUnderlineWarn },
|
CocWarningHighlight { DiagnosticUnderlineWarn },
|
||||||
CocInfoHighlight { DiagnosticUnderlineInfo },
|
CocInfoHighlight { DiagnosticUnderlineInfo },
|
||||||
@@ -421,10 +421,10 @@ local function generate(p, opt)
|
|||||||
-- LspDiagnosticsFloatingInformation { }, -- Used to color "Information" diagnostic messages in diagnostics float
|
-- LspDiagnosticsFloatingInformation { }, -- Used to color "Information" diagnostic messages in diagnostics float
|
||||||
-- LspDiagnosticsFloatingHint { }, -- Used to color "Hint" diagnostic messages in diagnostics float
|
-- LspDiagnosticsFloatingHint { }, -- Used to color "Hint" diagnostic messages in diagnostics float
|
||||||
|
|
||||||
-- LspDiagnosticsSignError { }, -- Used for "Error" signs in sign column
|
LspDiagnosticsSignError { DiagnosticSignError }, -- Used for "Error" signs in sign column
|
||||||
-- LspDiagnosticsSignWarning { }, -- Used for "Warning" signs in sign column
|
LspDiagnosticsSignWarning { DiagnosticSignWarn }, -- Used for "Warning" signs in sign column
|
||||||
-- LspDiagnosticsSignInformation { }, -- Used for "Information" signs in sign column
|
LspDiagnosticsSignInformation { DiagnosticSignInfo }, -- Used for "Information" signs in sign column
|
||||||
-- LspDiagnosticsSignHint { }, -- Used for "Hint" signs in sign column
|
LspDiagnosticsSignHint { DiagnosticSignHint }, -- Used for "Hint" signs in sign column
|
||||||
}
|
}
|
||||||
end)
|
end)
|
||||||
---@diagnostic enable: undefined-global
|
---@diagnostic enable: undefined-global
|
||||||
|
|||||||
@@ -175,10 +175,10 @@ local function generate(p, opt)
|
|||||||
DiagnosticInfo { fg = p.water },
|
DiagnosticInfo { fg = p.water },
|
||||||
DiagnosticHint { fg = p.blossom },
|
DiagnosticHint { fg = p.blossom },
|
||||||
|
|
||||||
DiagnosticSignError { LineNr, fg = DiagnosticError.fg },
|
DiagnosticSignError { SignColumn, fg = DiagnosticError.fg },
|
||||||
DiagnosticSignWarn { LineNr, fg = DiagnosticWarn.fg },
|
DiagnosticSignWarn { SignColumn, fg = DiagnosticWarn.fg },
|
||||||
DiagnosticSignInfo { LineNr, fg = DiagnosticInfo.fg },
|
DiagnosticSignInfo { SignColumn, fg = DiagnosticInfo.fg },
|
||||||
DiagnosticSignHint { LineNr, fg = DiagnosticHint.fg },
|
DiagnosticSignHint { SignColumn, fg = DiagnosticHint.fg },
|
||||||
|
|
||||||
DiagnosticVirtualTextError { DiagnosticError, bg = p.rose.saturation(52).lightness(Normal.bg.l - 4) },
|
DiagnosticVirtualTextError { DiagnosticError, bg = p.rose.saturation(52).lightness(Normal.bg.l - 4) },
|
||||||
DiagnosticVirtualTextWarn { DiagnosticWarn, bg = p.wood.saturation(52).lightness(Normal.bg.l - 4)},
|
DiagnosticVirtualTextWarn { DiagnosticWarn, bg = p.wood.saturation(52).lightness(Normal.bg.l - 4)},
|
||||||
@@ -318,10 +318,10 @@ local function generate(p, opt)
|
|||||||
BufferVisibleSign { fg = StatusLineNC.fg },
|
BufferVisibleSign { fg = StatusLineNC.fg },
|
||||||
BufferVisibleIndex { fg = StatusLineNC.fg },
|
BufferVisibleIndex { fg = StatusLineNC.fg },
|
||||||
|
|
||||||
CocErrorSign { DiagnosticError },
|
CocErrorSign { DiagnosticSignError },
|
||||||
CocWarningSign { DiagnosticWarn },
|
CocWarningSign { DiagnosticSignWarn },
|
||||||
CocInfoSign { DiagnosticInfo },
|
CocInfoSign { DiagnosticSignInfo },
|
||||||
CocHintSign { DiagnosticHint },
|
CocHintSign { DiagnosticSignHint },
|
||||||
CocErrorHighlight { DiagnosticUnderlineError },
|
CocErrorHighlight { DiagnosticUnderlineError },
|
||||||
CocWarningHighlight { DiagnosticUnderlineWarn },
|
CocWarningHighlight { DiagnosticUnderlineWarn },
|
||||||
CocInfoHighlight { DiagnosticUnderlineInfo },
|
CocInfoHighlight { DiagnosticUnderlineInfo },
|
||||||
@@ -421,10 +421,10 @@ local function generate(p, opt)
|
|||||||
-- LspDiagnosticsFloatingInformation { }, -- Used to color "Information" diagnostic messages in diagnostics float
|
-- LspDiagnosticsFloatingInformation { }, -- Used to color "Information" diagnostic messages in diagnostics float
|
||||||
-- LspDiagnosticsFloatingHint { }, -- Used to color "Hint" diagnostic messages in diagnostics float
|
-- LspDiagnosticsFloatingHint { }, -- Used to color "Hint" diagnostic messages in diagnostics float
|
||||||
|
|
||||||
-- LspDiagnosticsSignError { }, -- Used for "Error" signs in sign column
|
LspDiagnosticsSignError { DiagnosticSignError }, -- Used for "Error" signs in sign column
|
||||||
-- LspDiagnosticsSignWarning { }, -- Used for "Warning" signs in sign column
|
LspDiagnosticsSignWarning { DiagnosticSignWarn }, -- Used for "Warning" signs in sign column
|
||||||
-- LspDiagnosticsSignInformation { }, -- Used for "Information" signs in sign column
|
LspDiagnosticsSignInformation { DiagnosticSignInfo }, -- Used for "Information" signs in sign column
|
||||||
-- LspDiagnosticsSignHint { }, -- Used for "Hint" signs in sign column
|
LspDiagnosticsSignHint { DiagnosticSignHint }, -- Used for "Hint" signs in sign column
|
||||||
}
|
}
|
||||||
end)
|
end)
|
||||||
---@diagnostic enable: undefined-global
|
---@diagnostic enable: undefined-global
|
||||||
|
|||||||
Reference in New Issue
Block a user