add plugin highlight groups to colourscheme
This commit is contained in:
parent
e538a0b150
commit
e08ca2e42c
4 changed files with 265 additions and 19 deletions
|
|
@ -1,12 +1,80 @@
|
|||
-- Paper Tonic Modern - LSP Highlight Groups
|
||||
-- LSP diagnostics and UI elements
|
||||
-- LSP diagnostics, references, and UI elements
|
||||
|
||||
local colors = require('paper-tonic-modern.colors')
|
||||
local c = require('paper-tonic-modern.colors')
|
||||
|
||||
return {
|
||||
-- LSP groups (to be implemented in Phase 11.8)
|
||||
DiagnosticError = { fg = colors.alert_strong },
|
||||
DiagnosticWarn = { fg = colors.alert },
|
||||
DiagnosticInfo = { fg = colors.question },
|
||||
DiagnosticHint = { fg = colors.fg },
|
||||
-- ============================================================================
|
||||
-- LSP Diagnostics
|
||||
-- ============================================================================
|
||||
|
||||
-- Error diagnostics (red)
|
||||
DiagnosticError = { fg = c.alert_strong }, -- Bright red #d70000
|
||||
DiagnosticUnderlineError = { sp = c.alert_strong, undercurl = true },
|
||||
DiagnosticSignError = { fg = c.alert_strong, bg = c.bg },
|
||||
DiagnosticFloatingError = { fg = c.alert_strong },
|
||||
DiagnosticVirtualTextError = { fg = c.alert_strong, bg = c.bg_error_weak },
|
||||
|
||||
-- Warning diagnostics (orange)
|
||||
DiagnosticWarn = { fg = c.alert }, -- Orange-red #d75f00
|
||||
DiagnosticUnderlineWarn = { sp = c.alert, undercurl = true },
|
||||
DiagnosticSignWarn = { fg = c.alert, bg = c.bg },
|
||||
DiagnosticFloatingWarn = { fg = c.alert },
|
||||
DiagnosticVirtualTextWarn = { fg = c.alert, bg = c.bg_fail },
|
||||
|
||||
-- Info diagnostics (blue)
|
||||
DiagnosticInfo = { fg = c.modified }, -- Blue #8989af
|
||||
DiagnosticUnderlineInfo = { sp = c.modified, underline = true },
|
||||
DiagnosticSignInfo = { fg = c.modified, bg = c.bg },
|
||||
DiagnosticFloatingInfo = { fg = c.modified },
|
||||
DiagnosticVirtualTextInfo = { fg = c.modified, bg = c.bg_modified },
|
||||
|
||||
-- Hint diagnostics (green)
|
||||
DiagnosticHint = { fg = c.success }, -- Green #89af89
|
||||
DiagnosticUnderlineHint = { sp = c.success, underline = true },
|
||||
DiagnosticSignHint = { fg = c.success, bg = c.bg },
|
||||
DiagnosticFloatingHint = { fg = c.success },
|
||||
DiagnosticVirtualTextHint = { fg = c.success, bg = c.bg_success },
|
||||
|
||||
-- ============================================================================
|
||||
-- LSP References (document highlight)
|
||||
-- ============================================================================
|
||||
|
||||
-- Text under cursor (current symbol)
|
||||
LspReferenceText = { bg = c.bg_hl_special_weak }, -- Subtle cyan #e0eaff
|
||||
|
||||
-- Read references (where symbol is read)
|
||||
LspReferenceRead = { bg = c.bg_hl_special }, -- Cyan #d4f0ff
|
||||
|
||||
-- Write references (where symbol is written/modified)
|
||||
LspReferenceWrite = { bg = c.bg_hl_special_strong }, -- Strong cyan #a3e0ff
|
||||
|
||||
-- ============================================================================
|
||||
-- LSP Signature Help
|
||||
-- ============================================================================
|
||||
|
||||
LspSignatureActiveParameter = { fg = c.primary_strong, bold = true },
|
||||
|
||||
-- ============================================================================
|
||||
-- LSP Semantic Tokens (fallback groups)
|
||||
-- ============================================================================
|
||||
|
||||
-- These are fallback groups for LSP semantic tokens
|
||||
-- TreeSitter groups take precedence when both are available
|
||||
['@lsp.type.class'] = '@type',
|
||||
['@lsp.type.decorator'] = '@function',
|
||||
['@lsp.type.enum'] = '@type',
|
||||
['@lsp.type.enumMember'] = '@constant',
|
||||
['@lsp.type.function'] = '@function',
|
||||
['@lsp.type.interface'] = '@type',
|
||||
['@lsp.type.macro'] = '@macro',
|
||||
['@lsp.type.method'] = '@function.method',
|
||||
['@lsp.type.namespace'] = '@module',
|
||||
['@lsp.type.parameter'] = '@variable.parameter',
|
||||
['@lsp.type.property'] = '@property',
|
||||
['@lsp.type.struct'] = '@type',
|
||||
['@lsp.type.type'] = '@type',
|
||||
['@lsp.type.typeParameter'] = '@type',
|
||||
['@lsp.type.variable'] = '@variable',
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue