Update color settings for UI elements and completion menu

- Added darker cyan for UI elements in diagnostics.
- Adjusted FloatBorder and Pmenu colors for better visibility.
This commit is contained in:
Ray Elliott 2026-01-13 19:45:42 +00:00
parent ad110b0a4a
commit 341236833d
5 changed files with 18 additions and 9 deletions

View File

@ -104,6 +104,7 @@ M.diag_error = {'#ff0066', 197, 'red'} -- Hot pink-red (screams "error!")
M.diag_warn = {'#ff6600', 202, 'red'} -- Fluorescent orange (warnings) M.diag_warn = {'#ff6600', 202, 'red'} -- Fluorescent orange (warnings)
M.diag_info = {'#00ccff', 45, 'cyan'} -- Bright fluorescent cyan (info - more prominent) 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 = {'#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 -- LSP Diagnostic backgrounds - Light tinted versions for highlighting code
M.bg_diag_error = {'#ffe6f0', 224, 'white'} -- Very light pink (for error backgrounds) M.bg_diag_error = {'#ffe6f0', 224, 'white'} -- Very light pink (for error backgrounds)

View File

@ -10,7 +10,7 @@ return {
Normal = { fg = c.fg, bg = c.bg }, Normal = { fg = c.fg, bg = c.bg },
NormalFloat = { fg = c.fg, bg = c.bg }, NormalFloat = { fg = c.fg, bg = c.bg },
FloatBorder = { fg = c.diag_hint, bg = c.bg }, FloatBorder = { fg = c.diag_hint_dark, bg = c.bg },
-- ============================================================================ -- ============================================================================
-- Cursor & Line Highlighting -- Cursor & Line Highlighting
@ -66,11 +66,12 @@ return {
-- Popup Menu (Completion) -- Popup Menu (Completion)
-- ============================================================================ -- ============================================================================
Pmenu = { fg = c.fg, bg = c.bg_ui }, Pmenu = { fg = c.diag_hint_dark, bg = c.bg },
PmenuSel = { fg = c.fg_strong, bg = c.bg_ui, bold = true }, PmenuSel = { fg = c.fg_strong, bg = c.bg_hl, bold = true },
PmenuSbar = 'Pmenu', PmenuSbar = { fg = c.NONE, bg = c.bg_hl },
PmenuThumb = 'Pmenu', PmenuThumb = { fg = c.NONE, bg = c.fg_weaker },
WildMenu = { fg = c.fg_strong, bg = c.bg_ui, bold = true }, PmenuBorder = { fg = c.diag_hint_dark, bg = c.bg },
WildMenu = { fg = c.fg_strong, bg = c.bg_hl, bold = true },
-- ============================================================================ -- ============================================================================
-- Folds -- Folds

View File

@ -63,10 +63,11 @@ return {
-- ============================================================================ -- ============================================================================
-- Menu -- Menu
CmpItemMenu = { fg = c.fg_weak, italic = true }, CmpItemAbbr = { fg = c.fg },
CmpItemAbbrMatch = { fg = c.primary, bold = true }, CmpItemAbbrMatch = { fg = c.primary, bold = true },
CmpItemAbbrMatchFuzzy = { fg = c.primary_weak }, CmpItemAbbrMatchFuzzy = { fg = c.primary_weak },
CmpItemAbbrDeprecated = { fg = c.fg_weak, strikethrough = true }, CmpItemAbbrDeprecated = { fg = c.fg_weak, strikethrough = true },
CmpItemMenu = { fg = c.fg_weak, italic = true },
-- Kind icons/labels -- Kind icons/labels
CmpItemKindDefault = { fg = c.fg }, CmpItemKindDefault = { fg = c.fg },

View File

@ -45,7 +45,7 @@ return {
{ "🭼", "FloatBorder" }, { "🭼", "FloatBorder" },
{ "", "FloatBorder" }, { "", "FloatBorder" },
}, },
winhighlight = "Normal:NormalFloat,FloatBorder:FloatBorder", winhighlight = "Normal:Normal,FloatBorder:FloatBorder,CursorLine:PmenuSel",
}), }),
documentation = cmp.config.window.bordered({ documentation = cmp.config.window.bordered({
border = { border = {
@ -58,7 +58,7 @@ return {
{ "🭼", "FloatBorder" }, { "🭼", "FloatBorder" },
{ "", "FloatBorder" }, { "", "FloatBorder" },
}, },
winhighlight = "Normal:NormalFloat,FloatBorder:FloatBorder", winhighlight = "Normal:Normal,FloatBorder:FloatBorder",
}), }),
}, },
} }

View File

@ -40,6 +40,12 @@ vim.opt.showtabline = 1 -- Show tabline only when there are 2+ tabs
-- Completion UI for nvim-cmp -- Completion UI for nvim-cmp
vim.opt.completeopt = { "menu", "menuone", "noselect" } vim.opt.completeopt = { "menu", "menuone", "noselect" }
-- Built-in completion popup style (for Ctrl-X Ctrl-N/F completions)
-- Use floating window with border for native completion
vim.opt.pumblend = 0 -- No transparency
-- Note: Native completion (pumvisible) doesn't support custom borders like LSP floats
-- The Pmenu* highlight groups control its appearance
-- Spelling -- Spelling
vim.opt.spelllang = { "en_gb" } vim.opt.spelllang = { "en_gb" }