diff options
author | aktersnurra <gustaf.rydholm@gmail.com> | 2022-07-29 17:51:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-29 17:51:29 +0200 |
commit | 85d7d7de20b6330528c5b7c0243c3afcc5266711 (patch) | |
tree | 5731a5f2c934fe2da5b79aef24f708590af67ae0 /lua/no-clown-fiesta/highlights.lua | |
parent | da502c2571b710791b29c82a77cbe577791b14df (diff) |
Update configuration api (#5)
* Refactor
* Fix opts
* Fix plugin typos
* Update readme
Diffstat (limited to 'lua/no-clown-fiesta/highlights.lua')
-rw-r--r-- | lua/no-clown-fiesta/highlights.lua | 208 |
1 files changed, 108 insertions, 100 deletions
diff --git a/lua/no-clown-fiesta/highlights.lua b/lua/no-clown-fiesta/highlights.lua index a2cdd00..0085abc 100644 --- a/lua/no-clown-fiesta/highlights.lua +++ b/lua/no-clown-fiesta/highlights.lua @@ -1,101 +1,109 @@ -local highlights = { - Normal = { fg = C.fg, bg = Config.transparent_background }, - SignColumn = { bg = C.bg }, - MsgArea = { fg = C.fg, bg = C.bg }, - ModeMsg = { fg = C.fg, bg = C.bg }, - MsgSeparator = { fg = C.fg, bg = C.bg }, - SpellBad = { fg = C.error_red, style = "underline" }, - SpellCap = { fg = C.yellow, style = "underline" }, - SpellLocal = { fg = C.green, style = "underline" }, - SpellRare = { fg = C.purple, style = "underline" }, - NormalNC = { fg = C.fg, bg = C.bg }, - Pmenu = { fg = C.light_gray, bg = C.accent }, - PmenuSel = { fg = C.blue, bg = C.alt_bg }, - WildMenu = { fg = C.blue, bg = C.alt_bg }, - CursorLineNr = { fg = C.light_gray, style = "bold" }, - Comment = { fg = C.medium_gray, style = Config.italic_comments }, - Folded = { fg = C.light_gray, bg = C.alt_bg }, - FoldColumn = { fg = C.light_gray, bg = C.alt_bg }, - LineNr = { fg = C.gray }, - FloatBoder = { fg = C.gray, bg = C.alt_bg }, - Whitespace = { fg = C.gray }, - VertSplit = { fg = C.bg, bg = C.accent }, - CursorLine = { bg = C.alt_bg }, - CursorColumn = { bg = C.alt_bg }, - ColorColumn = { bg = C.alt_bg }, - NormalFloat = { bg = C.alt_bg }, - Visual = { bg = C.gray }, - VisualNOS = { bg = C.alt_bg }, - WarningMsg = { fg = C.error_red, bg = C.bg }, - DiffAdd = { fg = C.alt_bg, bg = C.sign_add }, - DiffChange = { fg = C.alt_bg, bg = C.sign_change, style = "underline" }, - DiffDelete = { fg = C.alt_bg, bg = C.sign_delete }, - QuickFixLine = { bg = C.accent }, - PmenuSbar = { bg = C.alt_bg }, - PmenuThumb = { bg = C.light_gray }, - MatchWord = { style = "underline" }, - MatchParen = { fg = C.pale_purple, bg = C.bg, style = "underline" }, - MatchWordCur = { style = "underline" }, - MatchParenCur = { style = "underline" }, - Cursor = { fg = C.cursor_fg, bg = C.cursor_bg }, - lCursor = { fg = C.cursor_fg, bg = C.cursor_bg }, - CursorIM = { fg = C.cursor_fg, bg = C.cursor_bg }, - TermCursor = { fg = C.cursor_fg, bg = C.cursor_bg }, - TermCursorNC = { fg = C.cursor_fg, bg = C.cursor_bg }, - Conceal = { fg = C.accent }, - Directory = { fg = C.blue }, - SpecialKey = { fg = C.blue }, - Title = { fg = C.blue }, - ErrorMsg = { fg = C.error_red, bg = C.bg, style = "bold" }, - Search = { fg = C.orange, bg = C.alt_bg }, - IncSearch = { fg = C.cursor_fg, bg = C.alt_bg }, - Substitute = { fg = C.alt_bg, bg = C.gray_blue }, - MoreMsg = { fg = C.cyan }, - Question = { fg = C.cyan }, - EndOfBuffer = { fg = C.bg }, - NonText = { fg = C.bg }, - Variable = { fg = C.white, style = Config.italic_variables }, - String = { fg = C.medium_gray_blue }, - Character = { fg = C.light_green }, - Constant = { fg = C.white }, - Number = { fg = C.red }, - Boolean = { fg = C.red }, - Float = { fg = C.red }, - Identifier = { fg = C.white }, - Function = { fg = C.gray_blue, style = Config.italic_functions }, - Operator = { fg = C.white }, - Type = { fg = C.white }, - StorageClass = { fg = C.gray_blue }, - Structure = { fg = C.gray_blue }, - Typedef = { fg = C.white }, - Keyword = { fg = C.gray_blue, style = Config.italic_keywords }, - Statement = { fg = C.gray_blue }, - Conditional = { fg = C.gray_blue }, - Repeat = { fg = C.gray_blue }, - Label = { fg = C.white }, - Exception = { fg = C.red }, - Include = { fg = C.red }, - PreProc = { fg = C.white }, - Define = { fg = C.red }, - Macro = { fg = C.cyan }, - PreCondit = { fg = C.medium_gray }, - Special = { fg = C.white }, - SpecialChar = { fg = C.medium_gray_blue }, - Tag = { fg = C.pale_purple }, - Debug = { fg = C.red }, - Delimiter = { fg = C.gray }, - SpecialComment = { fg = C.medium_gray, style = Config.italic_comments }, - Underlined = { style = "underline" }, - Bold = { style = "bold" }, - Italic = { style = "italic" }, - Ignore = { fg = C.cyan, bg = C.bg, style = "bold" }, - Todo = { fg = C.red, bg = C.bg, style = "bold" }, - Error = { fg = C.error_red, bg = C.bg, style = "bold" }, - TabLine = { fg = C.gray, bg = C.alt_bg }, - TabLineSel = { fg = C.white, bg = C.alt_bg }, - TabLineFill = { fg = C.white, bg = C.alt_bg }, - WinSeparator = { fg = C.medium_gray, bg = C.bg }, - DiagnosticFloatingError = { fg = C.error_red }, -} +local M = {} -return highlights +function M.highlight(palette, opts) + return { + Normal = { fg = palette.fg, bg = opts.transparent_background }, + SignColumn = { bg = palette.bg }, + MsgArea = { fg = palette.fg, bg = palette.bg }, + ModeMsg = { fg = palette.fg, bg = palette.bg }, + MsgSeparator = { fg = palette.fg, bg = palette.bg }, + SpellBad = { fg = palette.error_red, style = "underline" }, + SpellCap = { fg = palette.yellow, style = "underline" }, + SpellLocal = { fg = palette.green, style = "underline" }, + SpellRare = { fg = palette.purple, style = "underline" }, + NormalNC = { fg = palette.fg, bg = palette.bg }, + Pmenu = { fg = palette.light_gray, bg = palette.accent }, + PmenuSel = { fg = palette.blue, bg = palette.alt_bg }, + WildMenu = { fg = palette.blue, bg = palette.alt_bg }, + CursorLineNr = { fg = palette.light_gray, style = "bold" }, + Comment = { fg = palette.medium_gray, style = opts.comments }, + Folded = { fg = palette.light_gray, bg = palette.alt_bg }, + FoldColumn = { fg = palette.light_gray, bg = palette.alt_bg }, + LineNr = { fg = palette.gray }, + FloatBoder = { fg = palette.gray, bg = palette.alt_bg }, + Whitespace = { fg = palette.gray }, + VertSplit = { fg = palette.bg, bg = palette.accent }, + CursorLine = { bg = palette.alt_bg }, + CursorColumn = { bg = palette.alt_bg }, + ColorColumn = { bg = palette.alt_bg }, + NormalFloat = { bg = palette.alt_bg }, + Visual = { bg = palette.gray }, + VisualNOS = { bg = palette.alt_bg }, + WarningMsg = { fg = palette.error_red, bg = palette.bg }, + DiffAdd = { fg = palette.alt_bg, bg = palette.sign_add }, + DiffChange = { + fg = palette.alt_bg, + bg = palette.sign_change, + style = "underline", + }, + DiffDelete = { fg = palette.alt_bg, bg = palette.sign_delete }, + QuickFixLine = { bg = palette.accent }, + PmenuSbar = { bg = palette.alt_bg }, + PmenuThumb = { bg = palette.light_gray }, + MatchWord = { style = "underline" }, + MatchParen = { fg = palette.pale_purple, bg = palette.bg, style = "underline" }, + MatchWordCur = { style = "underline" }, + MatchParenCur = { style = "underline" }, + Cursor = { fg = palette.cursor_fg, bg = palette.cursor_bg }, + lCursor = { fg = palette.cursor_fg, bg = palette.cursor_bg }, + CursorIM = { fg = palette.cursor_fg, bg = palette.cursor_bg }, + TermCursor = { fg = palette.cursor_fg, bg = palette.cursor_bg }, + TermCursorNC = { fg = palette.cursor_fg, bg = palette.cursor_bg }, + Conceal = { fg = palette.accent }, + Directory = { fg = palette.blue }, + SpecialKey = { fg = palette.blue }, + Title = { fg = palette.blue }, + ErrorMsg = { fg = palette.error_red, bg = palette.bg, style = "bold" }, + Search = { fg = palette.orange, bg = palette.alt_bg }, + IncSearch = { fg = palette.cursor_fg, bg = palette.alt_bg }, + Substitute = { fg = palette.alt_bg, bg = palette.gray_blue }, + MoreMsg = { fg = palette.cyan }, + Question = { fg = palette.cyan }, + EndOfBuffer = { fg = palette.bg }, + NonText = { fg = palette.bg }, + Variable = { fg = palette.white, style = opts.variables }, + String = { fg = palette.medium_gray_blue }, + Character = { fg = palette.light_green }, + Constant = { fg = palette.white }, + Number = { fg = palette.red }, + Boolean = { fg = palette.red }, + Float = { fg = palette.red }, + Identifier = { fg = palette.white }, + Function = { fg = palette.gray_blue, style = opts.functions }, + Operator = { fg = palette.white }, + Type = { fg = palette.white }, + StorageClass = { fg = palette.gray_blue }, + Structure = { fg = palette.gray_blue }, + Typedef = { fg = palette.white }, + Keyword = { fg = palette.gray_blue, style = opts.keywords }, + Statement = { fg = palette.gray_blue }, + Conditional = { fg = palette.gray_blue }, + Repeat = { fg = palette.gray_blue }, + Label = { fg = palette.white }, + Exception = { fg = palette.red }, + Include = { fg = palette.red }, + PreProc = { fg = palette.white }, + Define = { fg = palette.red }, + Macro = { fg = palette.cyan }, + PreCondit = { fg = palette.medium_gray }, + Special = { fg = palette.white }, + SpecialChar = { fg = palette.medium_gray_blue }, + Tag = { fg = palette.pale_purple }, + Debug = { fg = palette.red }, + Delimiter = { fg = palette.gray }, + SpecialComment = { fg = palette.medium_gray, style = opts.comments }, + Underlined = { style = "underline" }, + Bold = { style = "bold" }, + Italic = { style = "italic" }, + Ignore = { fg = palette.cyan, bg = palette.bg, style = "bold" }, + Todo = { fg = palette.red, bg = palette.bg, style = "bold" }, + Error = { fg = palette.error_red, bg = palette.bg, style = "bold" }, + TabLine = { fg = palette.gray, bg = palette.alt_bg }, + TabLineSel = { fg = palette.white, bg = palette.alt_bg }, + TabLineFill = { fg = palette.white, bg = palette.alt_bg }, + WinSeparator = { fg = palette.medium_gray, bg = palette.bg }, + DiagnosticFloatingError = { fg = palette.error_red }, + } +end + +return M |