flexoki-neovim/lua/flexoki/highlights/base.lua

146 lines
6.2 KiB
Lua
Raw Normal View History

local palette = require('flexoki.palette')
local M = {}
M.groups = function()
local c = palette.palette()
--- @type table<string, vim.api.keyset.highlight>
return {
["Normal"] = { fg = c['tx'], bg = c['bg'] },
["NormalNC"] = { fg = 'NONE', bg = 'NONE' },
["Underlined"] = { fg = 'NONE', bg = 'NONE', underline = true, },
["Bold"] = { fg = 'NONE', bg = 'NONE', bold = true, },
["Italic"] = { fg = 'NONE', bg = 'NONE', italic = true, },
["SpellBad"] = { fg = c['re-2'], bg = 'NONE', underline = true, },
["SpellCap"] = { fg = c['ye'], bg = 'NONE', underline = true, },
["SpellLocal"] = { fg = c['gr'], bg = 'NONE', underline = true, },
["SpellRare"] = { fg = c['pu'], bg = 'NONE', underline = true, },
["NonText"] = { fg = c['tx-3'], bg = 'NONE' },
2024-10-24 17:45:21 +08:00
["EndOfBuffer"] = { fg = c['bg'], bg = 'NONE' },
["Search"] = { fg = c['tx'], bg = c['cy-2'] },
["IncSearch"] = { fg = c['tx'], bg = c['cy-2'] },
["Substitute"] = { fg = 'NONE', bg = c['cy'] },
["DiffAdd"] = { fg = c['bg'], bg = c['gr'] },
["DiffChange"] = { fg = c['bg-2'], bg = c['pu'] },
["DiffDelete"] = { fg = c['bg-2'], bg = c['re'] },
["DiffText"] = { fg = c['bg'], bg = c['bl-2'] },
--#region Actual text highlighting
["Comment"] = { fg = c['tx-3'], bg = 'NONE', italic = true, },
["Constant"] = { fg = c['ye'], bg = 'NONE' },
["String"] = { fg = c['cy'], bg = 'NONE' },
["Character"] = { fg = c['cy'], bg = 'NONE' },
["Number"] = { fg = c['pu'], bg = 'NONE' },
["Boolean"] = { fg = c['ye'], bg = 'NONE' },
["Float"] = { fg = c['pu'], bg = 'NONE' },
["Identifier"] = { fg = c['bl'], bg = 'NONE' },
2024-10-24 17:45:21 +08:00
["Function"] = { fg = c['bl'], bg = 'NONE' },
["Statement"] = { fg = 'NONE', bg = 'NONE' },
["Conditional"] = { link = 'Keyword' },
["Repeat"] = { link = 'Keyword' },
["Label"] = { link = 'Keyword' },
["Operator"] = { fg = c['tx-2'], bg = 'NONE' },
["Keyword"] = { fg = c['gr'], bg = 'NONE' },
["Exception"] = { link = 'Keyword' },
["PreProc"] = { fg = c['ma'], bg = 'NONE' },
["Include"] = { fg = c['re'], bg = 'NONE' },
["Define"] = { fg = c['ma'], bg = 'NONE' },
["Macro"] = { fg = c['ma'], bg = 'NONE' },
["PreCondit"] = { fg = c['ma'], bg = 'NONE' },
["Type"] = { fg = c['gr'], bg = 'NONE' },
2024-10-24 17:45:21 +08:00
["StorageClass"] = { fg = c['bl'], bg = 'NONE' },
["Structure"] = { fg = c['bl'], bg = 'NONE' },
["Typedef"] = { fg = c['bl'], bg = 'NONE' },
["SpecialComment"] = { fg = c['tx'], bg = 'NONE' },
["Special"] = { fg = c['tx-2'], bg = 'NONE' },
["SpecialChar"] = { fg = c['ma'], bg = 'NONE' },
["Tag"] = { fg = c['cy'], bg = 'NONE' },
["Debug"] = { fg = c['ma'], bg = 'NONE' },
["Delimiter"] = { link = 'Special' },
["Error"] = { fg = c['re'], bg = c['bg'], bold = true, },
["Todo"] = { fg = c['ma'], bg = 'NONE', bold = true, },
--#endregion
["SignColumn"] = { fg = 'NONE', bg = 'NONE' },
["MsgArea"] = { fg = 'NONE', bg = c['bg-2'] },
["ModeMsg"] = { fg = 'NONE', bg = c['bg-2'] },
["MsgSeparator"] = { fg = 'NONE', bg = c['bg-2'] },
-- Pop-up menu
2024-10-24 17:45:21 +08:00
["Pmenu"] = { fg = c['tx'], bg = c['bg-1'], sp = 'NONE', blend = 50, },
["PmenuSel"] = { fg = c['tx-3'], bg = c['bg-1'] },
["PmenuSbar"] = { fg = 'NONE', bg = c['ui'] },
["PmenuThumb"] = { fg = 'NONE', bg = c['ui-3'] },
2024-10-24 17:45:21 +08:00
["TabLine"] = { fg = c['tx-3'], bg = c['bg'] },
["TabLineSel"] = { fg = c['tx-2'], bg = c['bg'] },
["TabLineFill"] = { fg = c['tx'], bg = c['bg'] },
2024-10-24 17:45:21 +08:00
["StatusLine"] = { fg = c['bg'], bg = c['bg'] },
["StatusLineNC"] = { fg = c['tx-2'], bg = c['bg'] },
["StatusLineTerm"] = { fg = c['tx-2'], bg = c['ui-3'] },
["StatusLineTermNC"] = { fg = c['tx-2'], bg = c['ui-3'] },
["WinBar"] = { fg = c['tx'], bg = c['ui-3'] },
["WinBarNC"] = { fg = c['tx-2'], bg = c['ui'] },
["WildMenu"] = { fg = 'NONE', bg = c['cy-2'] },
["Folded"] = { fg = c['ui-2'], bg = c['alt_bg'] },
["FoldColumn"] = { fg = c['ui-2'], bg = c['alt_bg'] },
["LineNr"] = { fg = c['tx-3'], bg = 'NONE' },
2024-10-24 17:45:21 +08:00
["FloatBorder"] = { fg = c['tx'], bg = c['bg'] },
["Whitespace"] = { fg = c['tx-3'], bg = 'NONE' },
["WinSeparator"] = { fg = c['ui'], bg = c['ui'] },
["WinSeparatorNC"] = { fg = c['ui-3'], bg = c['ui-3'] },
2024-10-24 17:45:21 +08:00
["NormalFloat"] = { fg = c['tx'], bg = c['bg'] },
["WarningMsg"] = { fg = c['re'], bg = c['bg'] },
["QuickFixLine"] = { fg = 'NONE', bg = c['ui2_blue'] },
-- The MatchWord groups don't actually exist, but we define them here
-- to link to them in plugin specific files instead of redefining the
-- same group multiple times
["MatchWord"] = { fg = 'NONE', bg = c['ui-2'] },
["MatchParen"] = { fg = 'NONE', bg = c['ui-2'] },
["MatchWordCur"] = { fg = 'NONE', bg = 'NONE' },
["MatchParenCur"] = { fg = 'NONE', bg = 'NONE' },
["Conceal"] = { fg = 'NONE', bg = 'NONE' },
["Directory"] = { fg = c['bl'], bg = 'NONE' },
["SpecialKey"] = { fg = c['blue'], bg = 'NONE', bold = true, },
["Title"] = { fg = c['bl'], bg = 'NONE', bold = true, },
["ErrorMsg"] = { fg = c['re-2'], bg = 'NONE', bold = true, },
["MoreMsg"] = { fg = c['orange'], bg = 'NONE' },
["Question"] = { fg = c['orange'], bg = 'NONE' },
-- Cursor and selection related
["Cursor"] = { fg = c['bg'], bg = c['tx'] },
["lCursor"] = { fg = c['bg'], bg = c['tx'] },
["CursorLine"] = { fg = 'NONE', bg = c['bg-2'] },
["CursorLineNr"] = { fg = c['tx'], bg = 'NONE', bold = true, },
["CursorColumn"] = { fg = 'NONE', bg = c['bg-2'] },
["ColorColumn"] = { fg = 'NONE', bg = c['ui'] },
["CursorIM"] = { fg = c['bg'], bg = c['tx'] },
["TermCursor"] = { fg = c['bg'], bg = c['tx'] },
["TermCursorNC"] = { fg = c['bg'], bg = c['tx-3'] },
["Visual"] = { fg = 'NONE', bg = c['ui'] },
["VisualNOS"] = { fg = 'NONE', bg = c['ui-2'] },
}
end
return M