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 73205d8..5382f71 100644 Binary files a/spell/en.utf-8.add.spl and b/spell/en.utf-8.add.spl differ