From 8ad55cf9991f8756eabd9d43b17d89e5b3dc8cb2 Mon Sep 17 00:00:00 2001 From: ray Date: Mon, 19 Jan 2026 14:20:41 +0000 Subject: [PATCH] Update color definitions and spelling options Refactor diagnostic colors for better visibility in editor and plugin highlight groups. Add new spelling options for enhanced functionality. --- lua/paper-tonic-modern/colors.lua | 13 ++++++++++--- lua/paper-tonic-modern/groups/editor.lua | 15 +++++++++------ lua/paper-tonic-modern/groups/plugins.lua | 6 +++--- lua/paper-tonic-modern/groups/syntax.lua | 4 ++-- lua/paper-tonic-modern/groups/treesitter.lua | 8 ++++---- lua/settings.lua | 1 + spell/en.utf-8.add | 3 +++ spell/en.utf-8.add.spl | Bin 9652 -> 9665 bytes 8 files changed, 32 insertions(+), 18 deletions(-) diff --git a/lua/paper-tonic-modern/colors.lua b/lua/paper-tonic-modern/colors.lua index 546180b..4bb99e5 100644 --- a/lua/paper-tonic-modern/colors.lua +++ b/lua/paper-tonic-modern/colors.lua @@ -92,26 +92,33 @@ M.qf_info = {'#5f8faf', 196, 'white'} -- Info (muted blue) M.qf_hint = {'#5fafaf', 196, 'white'} -- Hint (lighter muted blue) -- ============================================================================ --- Alert/Diagnostic Colors (Fluorescent/Neon - intentionally jarring) +-- Diagnostic/Alert Colors (Fluorescent/Neon - intentionally jarring) -- ============================================================================ -- These colors are designed to be NOTICED, not blend in with code -- Fluorescent/neon aesthetic similar to bg_hl_special_alt colors -- Think "highlighter marker" - bright, synthetic, stands out on white paper +-- Used for: LSP diagnostics, spelling errors, UI alerts, error messages, etc. --- LSP Diagnostics - Fluorescent colors for maximum visibility +-- Diagnostic foreground - Fluorescent colors for maximum visibility M.diag_error = {'#ff0066', 197, 'red'} -- Hot pink-red (screams "error!") M.diag_warn = {'#ff6600', 202, 'red'} -- Fluorescent orange (warnings) M.diag_info = {'#00ccff', 45, 'cyan'} -- Bright fluorescent cyan (info - more prominent) M.diag_hint = {'#66e0ff', 81, 'cyan'} -- Softer fluorescent cyan (hint - less prominent) M.diag_hint_dark = {'#0099cc', 38, 'cyan'} -- Darker cyan for UI elements (readable on white) --- LSP Diagnostic backgrounds - Light tinted versions for highlighting code +-- Additional severity level for lighter warnings (spelling, etc.) +M.diag_weak = {'#ff9933', 208, 'yellow'} -- Lighter orange (for SpellLocal, SpellRare, etc.) + +-- Diagnostic backgrounds - Light tinted versions for highlighting code M.bg_diag_error = {'#ffe6f0', 224, 'white'} -- Very light pink (for error backgrounds) M.bg_diag_warn = {'#fff0e6', 223, 'white'} -- Very light orange (for warning backgrounds) M.bg_diag_info = {'#e6f9ff', 195, 'white'} -- Very light cyan (for info backgrounds) M.bg_diag_hint = {'#f0fcff', 195, 'white'} -- Very light cyan (for hint backgrounds) +-- Question/prompt color - Fluorescent cyan for prompts +M.question = {'#00ccff', 45, 'cyan'} -- Bright cyan for questions/prompts (same as diag_info) + -- ============================================================================ -- Primary Accent Colors (brownish-red tones) -- ============================================================================ diff --git a/lua/paper-tonic-modern/groups/editor.lua b/lua/paper-tonic-modern/groups/editor.lua index 5c33094..0555ff5 100644 --- a/lua/paper-tonic-modern/groups/editor.lua +++ b/lua/paper-tonic-modern/groups/editor.lua @@ -94,17 +94,20 @@ return { -- Spelling -- ============================================================================ - SpellBad = { fg = c.alert_strong, bg = c.bg_error_weak }, - SpellCap = { fg = c.alert, bg = c.bg_error_weak }, - SpellLocal = { fg = c.alert_weak, bg = c.bg_error_weak }, - SpellRare = { fg = c.alert_weak, bg = c.bg_error_weak }, + -- Spelling errors: normal text color with bright colored underline + -- sp (special) sets the underline color, separate from text foreground + -- Both underline and undercurl for terminal compatibility + SpellBad = { sp = c.diag_error, underline = true, undercurl = true }, -- Serious error: hot pink-red underline + SpellCap = { sp = c.diag_warn, underline = true, undercurl = true }, -- Capitalization: orange underline + SpellLocal = { sp = c.diag_weak, underline = true, undercurl = true }, -- Wrong region: lighter orange underline + SpellRare = { sp = c.diag_weak, underline = true, undercurl = true }, -- Rare word: lighter orange underline -- ============================================================================ -- Messages & Prompts -- ============================================================================ - ErrorMsg = { fg = c.alert, bold = true }, - WarningMsg = { fg = c.alert, bold = true }, + ErrorMsg = { fg = c.diag_error, bold = true }, + WarningMsg = { fg = c.diag_warn, bold = true }, Question = { fg = c.question, bold = true }, ModeMsg = { fg = c.question }, MoreMsg = { fg = c.question }, diff --git a/lua/paper-tonic-modern/groups/plugins.lua b/lua/paper-tonic-modern/groups/plugins.lua index fd847fe..5cacba6 100644 --- a/lua/paper-tonic-modern/groups/plugins.lua +++ b/lua/paper-tonic-modern/groups/plugins.lua @@ -88,7 +88,7 @@ return { CmpItemKindText = { fg = c.fg }, CmpItemKindFile = { fg = c.fg }, CmpItemKindFolder = { fg = c.fg_strong }, - CmpItemKindColor = { fg = c.alert }, + CmpItemKindColor = { fg = c.diag_warn }, CmpItemKindUnit = { fg = c.fg_weak }, CmpItemKindValue = { fg = c.fg_strong }, CmpItemKindConstant = { fg = c.fg_strong }, @@ -109,7 +109,7 @@ return { OilSize = { fg = c.fg_weak }, OilPermissionNone = { fg = c.fg_weaker }, OilPermissionRead = { fg = c.success }, - OilPermissionWrite = { fg = c.alert }, + OilPermissionWrite = { fg = c.diag_warn }, OilPermissionExecute = { fg = c.modified }, OilCopy = { fg = c.success, bold = true }, OilMove = { fg = c.modified, bold = true }, @@ -117,7 +117,7 @@ return { OilDelete = { fg = c.fail, bold = true }, OilChange = { fg = c.modified, bold = true }, OilRestore = { fg = c.success }, - OilPurge = { fg = c.alert_strong, bold = true }, + OilPurge = { fg = c.diag_error, bold = true }, OilTrash = { fg = c.fail }, OilTrashSourcePath = { fg = c.fg_weak, italic = true }, diff --git a/lua/paper-tonic-modern/groups/syntax.lua b/lua/paper-tonic-modern/groups/syntax.lua index b216386..0e6334a 100644 --- a/lua/paper-tonic-modern/groups/syntax.lua +++ b/lua/paper-tonic-modern/groups/syntax.lua @@ -76,8 +76,8 @@ return { Underlined = { underline = true }, Ignore = { fg = c.fg_weak }, - Error = { fg = c.alert_strong, bold = true }, - Todo = { fg = c.alert_strong }, + Error = { fg = c.diag_error, bold = true }, + Todo = { fg = c.diag_error }, -- ============================================================================ -- Language-Specific: CSS diff --git a/lua/paper-tonic-modern/groups/treesitter.lua b/lua/paper-tonic-modern/groups/treesitter.lua index 9396ed7..1819327 100644 --- a/lua/paper-tonic-modern/groups/treesitter.lua +++ b/lua/paper-tonic-modern/groups/treesitter.lua @@ -101,10 +101,10 @@ return { ['@comment'] = { fg = c.fg_weaker, italic = true, bold = true }, ['@comment.documentation'] = { fg = c.fg_weak, italic = true }, - ['@comment.error'] = { fg = c.alert_strong, bold = true }, - ['@comment.warning'] = { fg = c.alert, bold = true }, - ['@comment.todo'] = { fg = c.alert_strong }, - ['@comment.note'] = { fg = c.alert_weak }, + ['@comment.error'] = { fg = c.diag_error, bold = true }, + ['@comment.warning'] = { fg = c.diag_warn, bold = true }, + ['@comment.todo'] = { fg = c.diag_error }, + ['@comment.note'] = { fg = c.diag_weak }, -- ============================================================================ -- Markup (Markdown, etc.) diff --git a/lua/settings.lua b/lua/settings.lua index 4d6af08..697dd78 100644 --- a/lua/settings.lua +++ b/lua/settings.lua @@ -48,6 +48,7 @@ vim.opt.pumblend = 0 -- No transparency -- Spelling vim.opt.spelllang = { "en_gb" } +vim.opt.spelloptions = { "camel,noplainbuffer" } -- Search behavior vim.opt.ignorecase = true -- Case-insensitive search by default diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add index e0c3f1a..c779ae2 100644 --- a/spell/en.utf-8.add +++ b/spell/en.utf-8.add @@ -775,3 +775,6 @@ Hostinger's hPanel reauthoring dropdowns +contenteditable +#uer/! +suer/! diff --git a/spell/en.utf-8.add.spl b/spell/en.utf-8.add.spl index 73205d8de0092466c4574dc63d7f9bd5beba213b..5382f71c4a45042e016f3337a3b5e8731ef29b5e 100644 GIT binary patch delta 2049 zcmXw4U2GIp6rOu$cDw)G7Is_OVp~CeTH6BtgMv{62^4Jjk(h=sJ2Ty#barRx?83Hb z$qrn&CEJwR>E4~ zIz=eo=b43FgZLG3hmyf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