fix: html tags suggestion from claude

This commit is contained in:
Brian Pooe 2025-09-27 15:22:19 +02:00
parent d7c41a078b
commit ebe09cdac3

View file

@ -16,49 +16,49 @@ local p = {
bg_gutter = hsl("#313335"), -- Gutter background bg_gutter = hsl("#313335"), -- Gutter background
bg_darker = hsl("#242424"), -- Darker background for contrast bg_darker = hsl("#242424"), -- Darker background for contrast
bg_current_line = hsl("#323232"), -- Current line highlight bg_current_line = hsl("#323232"), -- Current line highlight
-- Selection and Search -- Selection and Search
bg_visual = hsl("#214283"), -- Selection background (deep desaturated blue) bg_visual = hsl("#214283"), -- Selection background (deep desaturated blue)
bg_search = hsl("#32593D"), -- Primary search result bg_search = hsl("#32593D"), -- Primary search result
bg_search_other = hsl("#4D4D2F"), -- Other search occurrences bg_search_other = hsl("#4D4D2F"), -- Other search occurrences
-- Text Colors -- Text Colors
fg = hsl("#A9B7C6"), -- Default foreground (parameters, plain text) fg = hsl("#A9B7C6"), -- Default foreground (parameters, plain text)
fg_dark = hsl("#606366"), -- Gutter numbers, inactive elements fg_dark = hsl("#606366"), -- Gutter numbers, inactive elements
fg_comment = hsl("#808080"), -- Comments fg_comment = hsl("#808080"), -- Comments
fg_light = hsl("#BBBBBB"), -- Lighter text fg_light = hsl("#BBBBBB"), -- Lighter text
-- Syntax Colors (from canonical Darcula) -- Syntax Colors (from canonical Darcula)
keyword = hsl("#CC7832"), -- Keywords (if, for, return), storage classes keyword = hsl("#CC7832"), -- Keywords (if, for, return), storage classes
string = hsl("#6A8759"), -- String literals (darker green per JetBrains) string = hsl("#6A8759"), -- String literals (darker green per JetBrains)
string_escape = hsl("#CC7832"), -- Escape sequences use keyword color string_escape = hsl("#CC7832"), -- Escape sequences use keyword color
number = hsl("#6897BB"), -- Numeric constants number = hsl("#6897BB"), -- Numeric constants
-- Function/Method Colors -- Function/Method Colors
function_call = hsl("#FFC66D"), -- Function and method invocations function_call = hsl("#FFC66D"), -- Function and method invocations
annotation = hsl("#BBB529"), -- Annotations, decorators, attributes annotation = hsl("#BBB529"), -- Annotations, decorators, attributes
-- Variable/Constant Colors -- Variable/Constant Colors
constant = hsl("#9876AA"), -- Named constants, enum members constant = hsl("#9876AA"), -- Named constants, enum members
member_variable = hsl("#9876AA"), -- Instance/class variables (often italicized) member_variable = hsl("#9876AA"), -- Instance/class variables (often italicized)
-- Diagnostic Colors (from JetBrains spec) -- Diagnostic Colors (from JetBrains spec)
error = hsl("#BC3F3C"), -- Error text and underlines error = hsl("#BC3F3C"), -- Error text and underlines
warning = hsl("#BE9117"), -- Warning text and underlines warning = hsl("#BE9117"), -- Warning text and underlines
info = hsl("#525A52"), -- Informational diagnostics info = hsl("#525A52"), -- Informational diagnostics
hint = hsl("#499C54"), -- Success/hint green hint = hsl("#499C54"), -- Success/hint green
-- Diff/VCS Colors -- Diff/VCS Colors
diff_add = hsl("#4A8F4A"), -- Added lines background diff_add = hsl("#4A8F4A"), -- Added lines background
diff_modified = hsl("#385570"), -- Modified lines background diff_modified = hsl("#385570"), -- Modified lines background
diff_delete = hsl("#632F34"), -- Deleted lines background diff_delete = hsl("#632F34"), -- Deleted lines background
-- Additional UI Colors -- Additional UI Colors
border = hsl("#616161"), -- UI borders border = hsl("#616161"), -- UI borders
border_dark = hsl("#424242"), -- Darker border variant border_dark = hsl("#424242"), -- Darker border variant
gray = hsl("#606060"), -- Various UI elements gray = hsl("#606060"), -- Various UI elements
gray_light = hsl("#767676"), -- Lighter gray gray_light = hsl("#767676"), -- Lighter gray
-- Special Colors -- Special Colors
white = hsl("#FFFFFF"), white = hsl("#FFFFFF"),
blue = hsl("#287BDE"), -- Links, special blues blue = hsl("#287BDE"), -- Links, special blues
@ -67,158 +67,158 @@ local p = {
} }
-- Terminal colors matching JetBrains terminal -- Terminal colors matching JetBrains terminal
vim.g.terminal_color_0 = "#2B2B2B" -- black vim.g.terminal_color_0 = "#2B2B2B" -- black
vim.g.terminal_color_1 = "#BC3F3C" -- red (using error color) vim.g.terminal_color_1 = "#BC3F3C" -- red (using error color)
vim.g.terminal_color_2 = "#4A8F4A" -- green (using diff add) vim.g.terminal_color_2 = "#4A8F4A" -- green (using diff add)
vim.g.terminal_color_3 = "#BE9117" -- yellow (using warning) vim.g.terminal_color_3 = "#BE9117" -- yellow (using warning)
vim.g.terminal_color_4 = "#6897BB" -- blue (using number color) vim.g.terminal_color_4 = "#6897BB" -- blue (using number color)
vim.g.terminal_color_5 = "#9876AA" -- magenta (using constant) vim.g.terminal_color_5 = "#9876AA" -- magenta (using constant)
vim.g.terminal_color_6 = "#5394EC" -- cyan vim.g.terminal_color_6 = "#5394EC" -- cyan
vim.g.terminal_color_7 = "#A9B7C6" -- white vim.g.terminal_color_7 = "#A9B7C6" -- white
vim.g.terminal_color_8 = "#606366" -- bright black vim.g.terminal_color_8 = "#606366" -- bright black
vim.g.terminal_color_9 = "#FF6B68" -- bright red vim.g.terminal_color_9 = "#FF6B68" -- bright red
vim.g.terminal_color_10 = "#A8C023" -- bright green vim.g.terminal_color_10 = "#A8C023" -- bright green
vim.g.terminal_color_11 = "#FFC66D" -- bright yellow vim.g.terminal_color_11 = "#FFC66D" -- bright yellow
vim.g.terminal_color_12 = "#6FB3D2" -- bright blue vim.g.terminal_color_12 = "#6FB3D2" -- bright blue
vim.g.terminal_color_13 = "#D197D9" -- bright magenta vim.g.terminal_color_13 = "#D197D9" -- bright magenta
vim.g.terminal_color_14 = "#4DD0E1" -- bright cyan vim.g.terminal_color_14 = "#4DD0E1" -- bright cyan
vim.g.terminal_color_15 = "#FFFFFF" -- bright white vim.g.terminal_color_15 = "#FFFFFF" -- bright white
---@diagnostic disable: undefined-global ---@diagnostic disable: undefined-global
return lush(function() return lush(function()
return { return {
-- == Core Neovim UI Groups == -- -- == Core Neovim UI Groups == --
Normal { bg = p.bg, fg = p.fg }, Normal({ bg = p.bg, fg = p.fg }),
NormalNC { bg = p.bg, fg = p.fg }, -- Non-current windows NormalNC({ bg = p.bg, fg = p.fg }), -- Non-current windows
NormalFloat { bg = p.bg_light, fg = p.fg }, -- Floating windows (LSP hover, etc.) NormalFloat({ bg = p.bg_light, fg = p.fg }), -- Floating windows (LSP hover, etc.)
FloatBorder { bg = p.bg_light, fg = p.border }, FloatBorder({ bg = p.bg_light, fg = p.border }),
-- Line Numbers and Signs -- Line Numbers and Signs
SignColumn { bg = p.bg, fg = p.fg_dark }, SignColumn({ bg = p.bg, fg = p.fg_dark }),
LineNr { bg = p.bg_gutter, fg = p.fg_dark }, LineNr({ bg = p.bg_gutter, fg = p.fg_dark }),
CursorLineNr { bg = p.bg_gutter, fg = p.fg, gui = "bold" }, CursorLineNr({ bg = p.bg_gutter, fg = p.fg, gui = "bold" }),
-- Cursor and Current Line -- Cursor and Current Line
CursorLine { bg = p.bg_current_line }, CursorLine({ bg = p.bg_current_line }),
CursorColumn { bg = p.bg_current_line }, CursorColumn({ bg = p.bg_current_line }),
ColorColumn { bg = p.bg_light }, ColorColumn({ bg = p.bg_light }),
-- Visual Selection -- Visual Selection
Visual { bg = p.bg_visual }, Visual({ bg = p.bg_visual }),
VisualNOS { bg = p.bg_visual }, VisualNOS({ bg = p.bg_visual }),
-- Popup Menu -- Popup Menu
Pmenu { bg = p.bg_light, fg = p.fg }, Pmenu({ bg = p.bg_light, fg = p.fg }),
PmenuSel { bg = p.bg_visual, fg = p.fg }, PmenuSel({ bg = p.bg_visual, fg = p.fg }),
PmenuSbar { bg = p.bg_light }, PmenuSbar({ bg = p.bg_light }),
PmenuThumb { bg = p.fg_dark }, PmenuThumb({ bg = p.fg_dark }),
-- Status and Tab Lines -- Status and Tab Lines
StatusLine { bg = p.bg_light, fg = p.fg }, StatusLine({ bg = p.bg_light, fg = p.fg }),
StatusLineNC { bg = p.bg_light, fg = p.fg_dark }, StatusLineNC({ bg = p.bg_light, fg = p.fg_dark }),
TabLine { bg = p.bg_gutter, fg = p.fg_dark }, TabLine({ bg = p.bg_gutter, fg = p.fg_dark }),
TabLineFill { bg = p.bg_gutter }, TabLineFill({ bg = p.bg_gutter }),
TabLineSel { bg = p.bg_light, fg = p.fg, gui = "bold" }, TabLineSel({ bg = p.bg_light, fg = p.fg, gui = "bold" }),
-- Window Separators -- Window Separators
VertSplit { fg = p.fg_dark, bg = p.bg }, VertSplit({ fg = p.fg_dark, bg = p.bg }),
WinSeparator { fg = p.fg_dark, bg = p.bg }, WinSeparator({ fg = p.fg_dark, bg = p.bg }),
-- Search -- Search
Search { bg = p.bg_search }, Search({ bg = p.bg_search }),
IncSearch { bg = p.bg_search_other }, IncSearch({ bg = p.bg_search_other }),
CurSearch { bg = p.bg_search }, CurSearch({ bg = p.bg_search }),
Substitute { bg = p.warning, fg = p.bg }, Substitute({ bg = p.warning, fg = p.bg }),
-- Messages and UI Elements -- Messages and UI Elements
Title { fg = p.keyword, gui = "bold" }, Title({ fg = p.keyword, gui = "bold" }),
Directory { fg = p.number }, Directory({ fg = p.number }),
ErrorMsg { fg = p.error }, ErrorMsg({ fg = p.error }),
WarningMsg { fg = p.warning }, WarningMsg({ fg = p.warning }),
MoreMsg { fg = p.string }, MoreMsg({ fg = p.string }),
Question { fg = p.number }, Question({ fg = p.number }),
ModeMsg { fg = p.fg }, ModeMsg({ fg = p.fg }),
Conceal { fg = p.fg_dark, bg = p.bg }, Conceal({ fg = p.fg_dark, bg = p.bg }),
Folded { fg = p.fg_comment, bg = p.bg_darker }, Folded({ fg = p.fg_comment, bg = p.bg_darker }),
FoldColumn { bg = p.bg_gutter, fg = p.fg_dark }, FoldColumn({ bg = p.bg_gutter, fg = p.fg_dark }),
-- Matching -- Matching
MatchParen { bg = p.gray, fg = p.function_call }, MatchParen({ bg = p.gray, fg = p.function_call }),
-- Special Characters -- Special Characters
NonText { fg = p.fg_dark }, NonText({ fg = p.fg_dark }),
SpecialKey { fg = p.gray }, SpecialKey({ fg = p.gray }),
Whitespace { fg = p.gray }, Whitespace({ fg = p.gray }),
EndOfBuffer { fg = p.bg }, EndOfBuffer({ fg = p.bg }),
-- Spell Checking -- Spell Checking
SpellBad { sp = p.error, gui = "undercurl" }, SpellBad({ sp = p.error, gui = "undercurl" }),
SpellCap { sp = p.warning, gui = "undercurl" }, SpellCap({ sp = p.warning, gui = "undercurl" }),
SpellLocal { sp = p.info, gui = "undercurl" }, SpellLocal({ sp = p.info, gui = "undercurl" }),
SpellRare { sp = p.constant, gui = "undercurl" }, SpellRare({ sp = p.constant, gui = "undercurl" }),
-- == Legacy Syntax Groups (Fallback when Tree-sitter is disabled) == -- -- == Legacy Syntax Groups (Fallback when Tree-sitter is disabled) == --
Comment { fg = p.fg_comment, gui = "italic" }, Comment({ fg = p.fg_comment, gui = "italic" }),
String { fg = p.string }, String({ fg = p.string }),
Character { fg = p.string }, Character({ fg = p.string }),
Number { fg = p.number }, Number({ fg = p.number }),
Float { fg = p.number }, Float({ fg = p.number }),
Boolean { fg = p.keyword, gui = "italic" }, Boolean({ fg = p.keyword, gui = "italic" }),
Keyword { fg = p.keyword, gui = "bold" }, Keyword({ fg = p.keyword, gui = "bold" }),
Conditional { fg = p.keyword, gui = "bold" }, Conditional({ fg = p.keyword, gui = "bold" }),
Repeat { fg = p.keyword, gui = "bold" }, Repeat({ fg = p.keyword, gui = "bold" }),
Statement { fg = p.keyword, gui = "bold" }, Statement({ fg = p.keyword, gui = "bold" }),
Operator { fg = p.fg }, Operator({ fg = p.fg }),
Exception { fg = p.keyword, gui = "bold" }, Exception({ fg = p.keyword, gui = "bold" }),
Identifier { fg = p.fg }, Identifier({ fg = p.fg }),
Function { fg = p.function_call }, Function({ fg = p.function_call }),
Type { fg = p.fg }, Type({ fg = p.fg }),
StorageClass { fg = p.keyword }, StorageClass({ fg = p.keyword }),
Structure { fg = p.keyword }, Structure({ fg = p.keyword }),
Typedef { fg = p.keyword }, Typedef({ fg = p.keyword }),
Constant { fg = p.constant }, Constant({ fg = p.constant }),
PreProc { fg = p.keyword }, PreProc({ fg = p.keyword }),
Include { fg = p.keyword }, Include({ fg = p.keyword }),
Define { fg = p.keyword }, Define({ fg = p.keyword }),
Macro { fg = p.annotation }, Macro({ fg = p.annotation }),
PreCondit { fg = p.keyword }, PreCondit({ fg = p.keyword }),
Special { fg = p.fg }, Special({ fg = p.fg }),
SpecialChar { fg = p.keyword }, SpecialChar({ fg = p.keyword }),
Tag { fg = p.function_call }, -- HTML tags in legacy syntax Tag({ fg = p.function_call }), -- HTML tags in legacy syntax
Delimiter { fg = p.fg }, Delimiter({ fg = p.fg }),
SpecialComment { fg = p.gray_light, gui = "italic" }, SpecialComment({ fg = p.gray_light, gui = "italic" }),
Debug { fg = p.pink }, Debug({ fg = p.pink }),
-- HTML Legacy Groups -- HTML Legacy Groups
htmlTag { fg = p.fg }, htmlTag({ fg = p.fg }),
htmlEndTag { fg = p.fg }, htmlEndTag({ fg = p.fg }),
htmlTagName { fg = p.function_call }, htmlTagName({ fg = p.function_call }),
htmlArg { fg = p.member_variable, gui = "italic" }, htmlArg({ fg = p.member_variable, gui = "italic" }),
htmlSpecialChar { fg = p.keyword }, htmlSpecialChar({ fg = p.keyword }),
htmlString { fg = p.string }, htmlString({ fg = p.string }),
htmlComment { fg = p.fg_comment, gui = "italic" }, htmlComment({ fg = p.fg_comment, gui = "italic" }),
htmlCommentPart { fg = p.fg_comment, gui = "italic" }, htmlCommentPart({ fg = p.fg_comment, gui = "italic" }),
htmlSpecialTagName { fg = p.function_call }, htmlSpecialTagName({ fg = p.function_call }),
htmlLink { fg = p.string, gui = "underline" }, htmlLink({ fg = p.string, gui = "underline" }),
htmlBold { gui = "bold" }, htmlBold({ gui = "bold" }),
htmlItalic { gui = "italic" }, htmlItalic({ gui = "italic" }),
htmlH1 { fg = p.function_call, gui = "bold" }, htmlH1({ fg = p.function_call, gui = "bold" }),
htmlH2 { fg = p.function_call, gui = "bold" }, htmlH2({ fg = p.function_call, gui = "bold" }),
htmlH3 { fg = p.function_call, gui = "bold" }, htmlH3({ fg = p.function_call, gui = "bold" }),
htmlH4 { fg = p.function_call, gui = "bold" }, htmlH4({ fg = p.function_call, gui = "bold" }),
htmlH5 { fg = p.function_call, gui = "bold" }, htmlH5({ fg = p.function_call, gui = "bold" }),
htmlH6 { fg = p.function_call, gui = "bold" }, htmlH6({ fg = p.function_call, gui = "bold" }),
Todo { fg = p.annotation, bg = p.bg_darker, gui = "bold" }, Todo({ fg = p.annotation, bg = p.bg_darker, gui = "bold" }),
Error { fg = p.error }, Error({ fg = p.error }),
Underlined { fg = p.blue, gui = "underline" }, Underlined({ fg = p.blue, gui = "underline" }),
-- == Tree-sitter Highlight Groups == -- -- == Tree-sitter Highlight Groups == --
-- Keywords and Control Flow -- Keywords and Control Flow
["@keyword"] = { fg = p.keyword, gui = "bold" }, ["@keyword"] = { fg = p.keyword, gui = "bold" },
@ -229,14 +229,14 @@ return lush(function()
["@repeat"] = { fg = p.keyword, gui = "bold" }, ["@repeat"] = { fg = p.keyword, gui = "bold" },
["@exception"] = { fg = p.keyword, gui = "bold" }, ["@exception"] = { fg = p.keyword, gui = "bold" },
["@include"] = { fg = p.keyword, gui = "bold" }, ["@include"] = { fg = p.keyword, gui = "bold" },
-- Comments -- Comments
["@comment"] = { fg = p.fg_comment, gui = "italic" }, ["@comment"] = { fg = p.fg_comment, gui = "italic" },
["@comment.documentation"] = { fg = p.fg_comment, gui = "italic" }, ["@comment.documentation"] = { fg = p.fg_comment, gui = "italic" },
["@comment.todo"] = { fg = p.annotation, bg = p.bg_darker, gui = "bold" }, ["@comment.todo"] = { fg = p.annotation, bg = p.bg_darker, gui = "bold" },
["@comment.warning"] = { fg = p.warning, gui = "bold" }, ["@comment.warning"] = { fg = p.warning, gui = "bold" },
["@comment.error"] = { fg = p.error, gui = "bold" }, ["@comment.error"] = { fg = p.error, gui = "bold" },
-- Strings -- Strings
["@string"] = { fg = p.string }, ["@string"] = { fg = p.string },
["@string.documentation"] = { fg = p.string, gui = "italic" }, ["@string.documentation"] = { fg = p.string, gui = "italic" },
@ -245,12 +245,12 @@ return lush(function()
["@string.special"] = { fg = p.keyword }, ["@string.special"] = { fg = p.keyword },
["@character"] = { fg = p.string }, ["@character"] = { fg = p.string },
["@character.special"] = { fg = p.keyword }, ["@character.special"] = { fg = p.keyword },
-- Numbers and Booleans -- Numbers and Booleans
["@number"] = { fg = p.number }, ["@number"] = { fg = p.number },
["@float"] = { fg = p.number }, ["@float"] = { fg = p.number },
["@boolean"] = { fg = p.keyword, gui = "italic" }, ["@boolean"] = { fg = p.keyword, gui = "italic" },
-- Functions and Methods -- Functions and Methods
["@function"] = { fg = p.function_call }, ["@function"] = { fg = p.function_call },
["@function.call"] = { fg = p.function_call }, ["@function.call"] = { fg = p.function_call },
@ -259,7 +259,7 @@ return lush(function()
["@method"] = { fg = p.function_call }, ["@method"] = { fg = p.function_call },
["@method.call"] = { fg = p.function_call }, ["@method.call"] = { fg = p.function_call },
["@constructor"] = { fg = p.function_call }, ["@constructor"] = { fg = p.function_call },
-- Types -- Types
["@type"] = { fg = p.fg }, -- Darcula uses default foreground for types ["@type"] = { fg = p.fg }, -- Darcula uses default foreground for types
["@type.builtin"] = { fg = p.keyword }, -- Built-in types styled as keywords ["@type.builtin"] = { fg = p.keyword }, -- Built-in types styled as keywords
@ -269,30 +269,30 @@ return lush(function()
["@attribute"] = { fg = p.annotation }, ["@attribute"] = { fg = p.annotation },
["@field"] = { fg = p.member_variable }, ["@field"] = { fg = p.member_variable },
["@property"] = { fg = p.member_variable }, ["@property"] = { fg = p.member_variable },
-- Variables and Parameters -- Variables and Parameters
["@variable"] = { fg = p.fg }, ["@variable"] = { fg = p.fg },
["@variable.builtin"] = { fg = p.constant, gui = "italic" }, ["@variable.builtin"] = { fg = p.constant, gui = "italic" },
["@variable.parameter"] = { fg = p.fg }, ["@variable.parameter"] = { fg = p.fg },
["@variable.member"] = { fg = p.member_variable, gui = "italic" }, ["@variable.member"] = { fg = p.member_variable, gui = "italic" },
-- Constants -- Constants
["@constant"] = { fg = p.constant }, ["@constant"] = { fg = p.constant },
["@constant.builtin"] = { fg = p.constant }, ["@constant.builtin"] = { fg = p.constant },
["@constant.macro"] = { fg = p.constant }, ["@constant.macro"] = { fg = p.constant },
-- Punctuation and Operators -- Punctuation and Operators
["@punctuation.delimiter"] = { fg = p.fg }, ["@punctuation.delimiter"] = { fg = p.fg },
["@punctuation.bracket"] = { fg = p.fg }, ["@punctuation.bracket"] = { fg = p.fg },
["@punctuation.special"] = { fg = p.fg }, ["@punctuation.special"] = { fg = p.fg },
["@operator"] = { fg = p.fg }, ["@operator"] = { fg = p.fg },
-- Tags (HTML/XML/JSX/TSX) -- Tags (HTML/XML/JSX/TSX)
["@tag"] = { fg = p.function_call }, -- Tag names should be yellow in Darcula ["@tag"] = { fg = p.function_call }, -- Tag names should be yellow in Darcula
["@tag.builtin"] = { fg = p.function_call }, -- HTML5 tags ["@tag.builtin"] = { fg = p.function_call }, -- HTML5 tags
["@tag.attribute"] = { fg = p.member_variable, gui = "italic" }, ["@tag.attribute"] = { fg = p.member_variable, gui = "italic" },
["@tag.delimiter"] = { fg = p.fg }, ["@tag.delimiter"] = { fg = p.fg },
-- HTML specific -- HTML specific
["@text.html"] = { fg = p.fg }, ["@text.html"] = { fg = p.fg },
["@tag.html"] = { fg = p.function_call }, ["@tag.html"] = { fg = p.function_call },
@ -300,13 +300,13 @@ return lush(function()
["@tag.delimiter.html"] = { fg = p.fg }, ["@tag.delimiter.html"] = { fg = p.fg },
["@constant.html"] = { fg = p.string }, -- attribute values ["@constant.html"] = { fg = p.string }, -- attribute values
["@string.html"] = { fg = p.string }, ["@string.html"] = { fg = p.string },
-- XML specific -- XML specific
["@tag.xml"] = { fg = p.function_call }, ["@tag.xml"] = { fg = p.function_call },
["@tag.attribute.xml"] = { fg = p.member_variable, gui = "italic" }, ["@tag.attribute.xml"] = { fg = p.member_variable, gui = "italic" },
["@tag.delimiter.xml"] = { fg = p.fg }, ["@tag.delimiter.xml"] = { fg = p.fg },
["@string.xml"] = { fg = p.string }, ["@string.xml"] = { fg = p.string },
-- JSX/TSX specific -- JSX/TSX specific
["@tag.tsx"] = { fg = p.function_call }, ["@tag.tsx"] = { fg = p.function_call },
["@tag.jsx"] = { fg = p.function_call }, ["@tag.jsx"] = { fg = p.function_call },
@ -314,7 +314,7 @@ return lush(function()
["@tag.attribute.jsx"] = { fg = p.member_variable, gui = "italic" }, ["@tag.attribute.jsx"] = { fg = p.member_variable, gui = "italic" },
["@constructor.tsx"] = { fg = p.function_call }, -- Component names ["@constructor.tsx"] = { fg = p.function_call }, -- Component names
["@constructor.jsx"] = { fg = p.function_call }, ["@constructor.jsx"] = { fg = p.function_call },
-- Text/Markup (Markdown) -- Text/Markup (Markdown)
["@text"] = { fg = p.fg }, ["@text"] = { fg = p.fg },
["@text.strong"] = { gui = "bold" }, ["@text.strong"] = { gui = "bold" },
@ -325,15 +325,15 @@ return lush(function()
["@text.literal"] = { fg = p.string }, ["@text.literal"] = { fg = p.string },
["@text.uri"] = { fg = p.string, gui = "underline" }, ["@text.uri"] = { fg = p.string, gui = "underline" },
["@text.reference"] = { fg = p.number }, ["@text.reference"] = { fg = p.number },
-- Namespaces and Modules -- Namespaces and Modules
["@namespace"] = { fg = p.fg }, ["@namespace"] = { fg = p.fg },
["@module"] = { fg = p.fg }, ["@module"] = { fg = p.fg },
["@symbol"] = { fg = p.constant }, ["@symbol"] = { fg = p.constant },
-- Labels -- Labels
["@label"] = { fg = p.keyword }, ["@label"] = { fg = p.keyword },
-- == LSP Semantic Token Support == -- -- == LSP Semantic Token Support == --
["@lsp.type.class"] = { fg = p.fg }, ["@lsp.type.class"] = { fg = p.fg },
["@lsp.type.struct"] = { fg = p.fg }, ["@lsp.type.struct"] = { fg = p.fg },
@ -349,95 +349,95 @@ return lush(function()
["@lsp.type.method"] = { fg = p.function_call }, ["@lsp.type.method"] = { fg = p.function_call },
["@lsp.type.macro"] = { fg = p.annotation }, ["@lsp.type.macro"] = { fg = p.annotation },
["@lsp.type.decorator"] = { fg = p.annotation }, ["@lsp.type.decorator"] = { fg = p.annotation },
["@lsp.mod.deprecated"] = { gui = "strikethrough" }, ["@lsp.mod.deprecated"] = { gui = "strikethrough" },
["@lsp.mod.readonly"] = { gui = "italic" }, ["@lsp.mod.readonly"] = { gui = "italic" },
["@lsp.mod.static"] = { gui = "italic" }, ["@lsp.mod.static"] = { gui = "italic" },
-- == LSP Diagnostics == -- -- == LSP Diagnostics == --
DiagnosticError { fg = p.error }, DiagnosticError({ fg = p.error }),
DiagnosticWarn { fg = p.warning }, DiagnosticWarn({ fg = p.warning }),
DiagnosticInfo { fg = p.info }, DiagnosticInfo({ fg = p.info }),
DiagnosticHint { fg = p.hint }, DiagnosticHint({ fg = p.hint }),
DiagnosticVirtualTextError { fg = p.error, bg = hsl("#3D2929") }, DiagnosticVirtualTextError({ fg = p.error, bg = hsl("#3D2929") }),
DiagnosticVirtualTextWarn { fg = p.warning, bg = hsl("#3D3D29") }, DiagnosticVirtualTextWarn({ fg = p.warning, bg = hsl("#3D3D29") }),
DiagnosticVirtualTextInfo { fg = p.info, bg = hsl("#293D48") }, DiagnosticVirtualTextInfo({ fg = p.info, bg = hsl("#293D48") }),
DiagnosticVirtualTextHint { fg = p.hint, bg = hsl("#294F33") }, DiagnosticVirtualTextHint({ fg = p.hint, bg = hsl("#294F33") }),
DiagnosticUnderlineError { sp = p.error, gui = "undercurl" }, DiagnosticUnderlineError({ sp = p.error, gui = "undercurl" }),
DiagnosticUnderlineWarn { sp = p.warning, gui = "undercurl" }, DiagnosticUnderlineWarn({ sp = p.warning, gui = "undercurl" }),
DiagnosticUnderlineInfo { sp = p.info, gui = "undercurl" }, DiagnosticUnderlineInfo({ sp = p.info, gui = "undercurl" }),
DiagnosticUnderlineHint { sp = p.hint, gui = "undercurl" }, DiagnosticUnderlineHint({ sp = p.hint, gui = "undercurl" }),
DiagnosticFloatingError { fg = p.error, bg = p.bg_light }, DiagnosticFloatingError({ fg = p.error, bg = p.bg_light }),
DiagnosticFloatingWarn { fg = p.warning, bg = p.bg_light }, DiagnosticFloatingWarn({ fg = p.warning, bg = p.bg_light }),
DiagnosticFloatingInfo { fg = p.info, bg = p.bg_light }, DiagnosticFloatingInfo({ fg = p.info, bg = p.bg_light }),
DiagnosticFloatingHint { fg = p.hint, bg = p.bg_light }, DiagnosticFloatingHint({ fg = p.hint, bg = p.bg_light }),
DiagnosticSignError { fg = p.error, bg = p.bg }, DiagnosticSignError({ fg = p.error, bg = p.bg }),
DiagnosticSignWarn { fg = p.warning, bg = p.bg }, DiagnosticSignWarn({ fg = p.warning, bg = p.bg }),
DiagnosticSignInfo { fg = p.info, bg = p.bg }, DiagnosticSignInfo({ fg = p.info, bg = p.bg }),
DiagnosticSignHint { fg = p.hint, bg = p.bg }, DiagnosticSignHint({ fg = p.hint, bg = p.bg }),
-- LSP References -- LSP References
LspReferenceText { bg = p.bg_darker }, LspReferenceText({ bg = p.bg_darker }),
LspReferenceRead { bg = p.bg_darker }, LspReferenceRead({ bg = p.bg_darker }),
LspReferenceWrite { bg = p.bg_darker, gui = "underline" }, LspReferenceWrite({ bg = p.bg_darker, gui = "underline" }),
-- LSP Code Lens -- LSP Code Lens
LspCodeLens { fg = p.gray_light }, LspCodeLens({ fg = p.gray_light }),
LspCodeLensSeparator { fg = p.gray }, LspCodeLensSeparator({ fg = p.gray }),
-- == Plugin Support == -- -- == Plugin Support == --
-- NvimTree -- NvimTree
NvimTreeNormal { bg = p.bg, fg = p.fg }, NvimTreeNormal({ bg = p.bg, fg = p.fg }),
NvimTreeVertSplit { fg = p.border_dark, bg = p.bg }, NvimTreeVertSplit({ fg = p.border_dark, bg = p.bg }),
NvimTreeEndOfBuffer { fg = p.bg }, NvimTreeEndOfBuffer({ fg = p.bg }),
NvimTreeFolderIcon { fg = p.number }, NvimTreeFolderIcon({ fg = p.number }),
NvimTreeFolderName { fg = p.fg }, NvimTreeFolderName({ fg = p.fg }),
NvimTreeOpenedFolderName { fg = p.number, gui = "bold" }, NvimTreeOpenedFolderName({ fg = p.number, gui = "bold" }),
NvimTreeEmptyFolderName { fg = p.fg_dark }, NvimTreeEmptyFolderName({ fg = p.fg_dark }),
NvimTreeRootFolder { fg = p.keyword, gui = "bold" }, NvimTreeRootFolder({ fg = p.keyword, gui = "bold" }),
NvimTreeSpecialFile { fg = p.function_call, gui = "underline" }, NvimTreeSpecialFile({ fg = p.function_call, gui = "underline" }),
NvimTreeGitDirty { fg = p.warning }, NvimTreeGitDirty({ fg = p.warning }),
NvimTreeGitStaged { fg = p.hint }, NvimTreeGitStaged({ fg = p.hint }),
NvimTreeGitNew { fg = p.hint }, NvimTreeGitNew({ fg = p.hint }),
NvimTreeGitDeleted { fg = p.error }, NvimTreeGitDeleted({ fg = p.error }),
-- Telescope -- Telescope
TelescopeNormal { bg = p.bg_light, fg = p.fg }, TelescopeNormal({ bg = p.bg_light, fg = p.fg }),
TelescopeBorder { fg = p.border, bg = p.bg_light }, TelescopeBorder({ fg = p.border, bg = p.bg_light }),
TelescopePromptBorder { fg = p.border, bg = p.bg_light }, TelescopePromptBorder({ fg = p.border, bg = p.bg_light }),
TelescopePromptTitle { fg = p.keyword, bg = p.bg_light, gui = "bold" }, TelescopePromptTitle({ fg = p.keyword, bg = p.bg_light, gui = "bold" }),
TelescopePromptPrefix { fg = p.keyword }, TelescopePromptPrefix({ fg = p.keyword }),
TelescopeSelection { bg = p.bg_visual, fg = p.fg }, TelescopeSelection({ bg = p.bg_visual, fg = p.fg }),
TelescopeSelectionCaret { fg = p.keyword, bg = p.bg_visual }, TelescopeSelectionCaret({ fg = p.keyword, bg = p.bg_visual }),
TelescopeMatching { fg = p.function_call, gui = "bold" }, TelescopeMatching({ fg = p.function_call, gui = "bold" }),
-- GitSigns -- GitSigns
GitSignsAdd { fg = p.hint }, GitSignsAdd({ fg = p.hint }),
GitSignsAddLn { bg = p.diff_add }, GitSignsAddLn({ bg = p.diff_add }),
GitSignsChange { fg = p.warning }, GitSignsChange({ fg = p.warning }),
GitSignsChangeLn { bg = p.diff_modified }, GitSignsChangeLn({ bg = p.diff_modified }),
GitSignsDelete { fg = p.error }, GitSignsDelete({ fg = p.error }),
GitSignsDeleteLn { bg = p.diff_delete }, GitSignsDeleteLn({ bg = p.diff_delete }),
GitSignsCurrentLineBlame { fg = p.fg_comment }, GitSignsCurrentLineBlame({ fg = p.fg_comment }),
-- Diff -- Diff
DiffAdd { bg = p.diff_add }, DiffAdd({ bg = p.diff_add }),
DiffChange { bg = p.diff_modified }, DiffChange({ bg = p.diff_modified }),
DiffDelete { bg = p.diff_delete }, DiffDelete({ bg = p.diff_delete }),
DiffText { bg = p.warning, fg = p.bg }, DiffText({ bg = p.warning, fg = p.bg }),
-- Neogit -- Neogit
NeogitBranch { fg = p.constant }, NeogitBranch({ fg = p.constant }),
NeogitRemote { fg = p.number }, NeogitRemote({ fg = p.number }),
NeogitHunkHeader { bg = p.bg_light, fg = p.fg }, NeogitHunkHeader({ bg = p.bg_light, fg = p.fg }),
NeogitHunkHeaderHighlight { bg = p.bg_visual, fg = p.keyword }, NeogitHunkHeaderHighlight({ bg = p.bg_visual, fg = p.keyword }),
NeogitDiffContextHighlight { bg = p.bg_current_line }, NeogitDiffContextHighlight({ bg = p.bg_current_line }),
NeogitDiffDeleteHighlight { bg = p.diff_delete }, NeogitDiffDeleteHighlight({ bg = p.diff_delete }),
NeogitDiffAddHighlight { bg = p.diff_add }, NeogitDiffAddHighlight({ bg = p.diff_add }),
} }
end) end)
---@diagnostic enable: undefined-global ---@diagnostic enable: undefined-global