{"repo_name": "kanso.nvim", "file_name": "/kanso.nvim/lua/kanso/init.lua", "inference_info": {"prefix_code": "local M = {}\n\n---@alias ColorSpec string RGB Hex string\n---@alias ColorTable table\n---@alias KansoColorsSpec { palette: ColorTable, theme: ColorTable }\n---@alias KansoColors { palette: PaletteColors, theme: ThemeColors }\n\n--- default config\n---@class KansoConfig\nM.config = {\n bold = true,\n italics = true,\n undercurl = true,\n commentStyle = { italic = true },\n functionStyle = {},\n keywordStyle = { italic = true },\n statementStyle = {},\n typeStyle = {},\n transparent = false,\n dimInactive = false,\n terminalColors = true,\n colors = { theme = { zen = {}, pearl = {}, ink = {}, all = {} }, palette = {} },\n ---@type fun(colors: KansoColorsSpec): table\n overrides = function()\n return {}\n end,\n ---@type { dark: string, light: string }\n background = { dark = \"ink\", light = \"pearl\" },\n theme = \"ink\",\n ---@type { dark: \"default\"|\"contrast\", light: \"default\"|\"contrast\" }|\"default\"|\"contrast\"\n foreground = \"default\",\n compile = false,\n}\n\nlocal function check_config(_)\n local err\n return not err\nend\n\n--- update global configuration with user settings\n---@param config? KansoConfig user configuration\nfunction M.setup(config)\n if check_config(config) then\n M.config = vim.tbl_deep_extend(\"force\", M.config, config or {})\n else\n vim.notify(\"Kanso: Errors found while loading user config. Using default config.\", vim.log.levels.ERROR)\n end\nend\n\n--- load the colorscheme\n---@param theme? string\nfunction M.load(theme)\n local utils = require(\"kanso.utils\")\n\n theme = theme or M.config.background[vim.o.background] or M.config.theme\n M._CURRENT_THEME = theme\n\n if vim.g.colors_name then\n vim.cmd(\"hi clear\")\n end\n\n vim.g.colors_name = \"kanso\"\n vim.o.termguicolors = true\n\n -- Setup autocommand to reload theme when background changes\n if not M._autocmd_created then\n M._autocmd_created = true\n vim.api.nvim_create_autocmd(\"OptionSet\", {\n pattern = \"background\",\n callback = function()\n if vim.g.colors_name == \"kanso\" then\n -- Clear cached modules to force reload\n package.loaded[\"kanso.colors\"] = nil\n package.loaded[\"kanso.themes\"] = nil\n M.load()\n end\n end,\n })\n end\n\n if M.config.compile then\n if utils.load_compiled(theme) then\n return\n end\n\n M.compile()\n utils.load_compiled(theme)\n else\n local foreground_setting = type(M.config.foreground) == \"table\" and M.config.foreground[vim.o.background]\n or M.config.foreground\n ---@cast foreground_setting \"default\"|\"contrast\"\n local colors =\n require(\"kanso.colors\").setup({ theme = theme, colors = M.config.colors, foreground = foreground_setting })\n local highlights = require(\"kanso.highlights\").setup(colors, M.config)\n require(\"kanso.highlights\").highlight(highlights, M.config.terminalColors and colors.theme.term or {})\n end\nend\n\n", "suffix_code": "\n\nvim.api.nvim_create_user_command(\"KansoCompile\", function()\n for mod, _ in pairs(package.loaded) do\n if mod:match(\"^kanso%.\") then\n package.loaded[mod] = nil\n end\n end\n M.compile()\n vim.notify(\"Kanso: compiled successfully!\", vim.log.levels.INFO)\n M.load(M._CURRENT_THEME)\n vim.api.nvim_exec_autocmds(\"ColorScheme\", { modeline = false })\nend, {})\n\nreturn M\n", "middle_code": "function M.compile()\n for theme, _ in pairs(require(\"kanso.themes\")) do\n if type(M.config.foreground) == \"table\" then\n local colors_dark = require(\"kanso.colors\").setup({\n theme = theme,\n colors = M.config.colors,\n foreground = M.config.foreground.dark,\n })\n local highlights_dark = require(\"kanso.highlights\").setup(colors_dark, M.config)\n require(\"kanso.utils\").compile(\n theme .. \"_dark_\" .. M.config.foreground.dark,\n highlights_dark,\n M.config.terminalColors and colors_dark.theme.term or {}\n )\n local colors_light = require(\"kanso.colors\").setup({\n theme = theme,\n colors = M.config.colors,\n foreground = M.config.foreground.light,\n })\n local highlights_light = require(\"kanso.highlights\").setup(colors_light, M.config)\n require(\"kanso.utils\").compile(\n theme .. \"_light_\" .. M.config.foreground.light,\n highlights_light,\n M.config.terminalColors and colors_light.theme.term or {}\n )\n else\n local foreground_str = M.config.foreground\n local colors = require(\"kanso.colors\").setup({\n theme = theme,\n colors = M.config.colors,\n foreground = foreground_str,\n })\n local highlights = require(\"kanso.highlights\").setup(colors, M.config)\n require(\"kanso.utils\").compile(theme, highlights, M.config.terminalColors and colors.theme.term or {})\n end\n end\nend", "code_description": null, "fill_type": "FUNCTION_TYPE", "language_type": "lua", "sub_task_type": null}, "context_code": [["/kanso.nvim/lua/kanso/utils.lua", "local M = {}\nlocal PATH_SEP = vim.uv.os_uname().version:match(\"Windows\") and \"\\\\\" or \"/\"\n\nlocal get_compiled_path = function(theme)\n return table.concat({ vim.fn.stdpath(\"state\"), \"kanso\", theme .. \"_compiled.lua\" }, PATH_SEP)\nend\n\n---@return string theme\nfunction M.get_theme_from_bg_opt()\n local config = require(\"kanso\").config\n return config.background[vim.o.background] or config.theme\nend\n\n---@param theme string\n---@param highlights table\n---@param termcolors table\nfunction M.compile(theme, highlights, termcolors)\n vim.uv.fs_mkdir(vim.fn.stdpath(\"state\") .. PATH_SEP .. \"kanso\", 448)\n\n local fname = get_compiled_path(theme)\n local file, err = io.open(fname, \"wb\")\n if not file or err then\n vim.notify(\"Kanso: Error writing \" .. fname .. \":\\n\" .. err, vim.log.levels.ERROR)\n return\n end\n\n local lines = {\n \"require'kanso'.compiled = string.dump(function()\",\n \"local g = vim.g\",\n \"local nvim_set_hl = vim.api.nvim_set_hl\",\n }\n local inspect = vim.inspect\n for hl, spec in pairs(highlights) do\n if next(spec) then\n table.insert(lines, ('nvim_set_hl(0, \"%s\", %s)'):format(hl, inspect(spec):gsub(\"%s\", \"\")))\n end\n for i, tcolor in ipairs(termcolors) do\n table.insert(lines, ('g[\"terminal_color_%d\"] = \"%s\"'):format(i - 1, tcolor))\n end\n end\n table.insert(lines, \"end)\")\n\n local blob = table.concat(lines, \"\\n\")\n assert(loadstring(blob, \"=(compile)\"))()\n file:write(require(\"kanso\").compiled)\n file:close()\nend\n\n---@param theme string\n---@return boolean status\nfunction M.load_compiled(theme)\n local f = loadfile(get_compiled_path(theme))\n if f then\n f()\n return true\n end\n return false\nend\n\nreturn M\n"], ["/kanso.nvim/lua/kanso/colors.lua", "---@class PaletteColors\nlocal palette = {\n\n -- Zen Bg Shades\n zenBg0 = \"#090E13\",\n zenBg1 = \"#1C1E25\",\n zenBg2 = \"#22262D\",\n zenBg3 = \"#393B44\",\n\n -- Ink Bg Shades\n inkBg0 = \"#14171d\",\n inkBg1 = \"#1f1f26\",\n inkBg2 = \"#22262D\",\n inkBg3 = \"#393B44\",\n inkBg4 = \"#4b4e57\",\n\n -- Mist Bg Shades\n mistBg0 = \"#22262D\",\n mistBg1 = \"#2a2c35\",\n mistBg2 = \"#393B44\",\n mistBg3 = \"#5C6066\",\n\n -- Popup and Floats\n altBlue1 = \"#223249\",\n altBlue2 = \"#2D4F67\",\n\n -- Diff and Git\n diffGreen = \"#2B3328\",\n diffYellow = \"#49443C\",\n diffRed = \"#43242B\",\n diffBlue = \"#252535\",\n gitGreen = \"#76946A\",\n gitRed = \"#C34043\",\n gitYellow = \"#DCA561\",\n\n -- Main Colors\n red = \"#C34043\",\n red2 = \"#E46876\",\n red3 = \"#c4746e\",\n yellow = \"#DCA561\",\n yellow2 = \"#E6C384\",\n yellow3 = \"#c4b28a\",\n green = \"#98BB6C\",\n green2 = \"#87a987\",\n green3 = \"#8a9a7b\",\n green4 = \"#6A9589\",\n green5 = \"#7AA89F\",\n blue = \"#7FB4CA\",\n blue2 = \"#658594\",\n blue3 = \"#8ba4b0\",\n blue4 = \"#8ea4a2\",\n violet = \"#938AA9\",\n violet2 = \"#8992a7\",\n violet3 = \"#949fb5\",\n pink = \"#a292a3\",\n orange = \"#b6927b\",\n orange2 = \"#b98d7b\",\n aqua = \"#8ea4a2\",\n\n -- Contrast variants (20% more saturation)\n redContrast = \"#C93134\",\n red2Contrast = \"#ED5965\",\n red3Contrast = \"#CA675F\",\n yellowContrast = \"#E59F49\",\n yellow2Contrast = \"#EDC272\",\n yellow3Contrast = \"#CAAC7A\",\n greenContrast = \"#8FC055\",\n green2Contrast = \"#7CAF7C\",\n green3Contrast = \"#7F9F6E\",\n green4Contrast = \"#5B9A82\",\n green5Contrast = \"#6BAE97\",\n blueContrast = \"#6EBBD4\",\n blue2Contrast = \"#568B8F\",\n blue3Contrast = \"#7EAABA\",\n blue4Contrast = \"#81AAA9\",\n violetContrast = \"#8A88B0\",\n violet2Contrast = \"#7E91AF\",\n violet3Contrast = \"#8A9FBE\",\n pinkContrast = \"#A08AA2\",\n orangeContrast = \"#BC8A6C\",\n orange2Contrast = \"#BF856B\",\n aquaContrast = \"#81AAA9\",\n\n -- Fg and Comments\n fg = \"#C5C9C7\",\n fg2 = \"#f2f1ef\",\n gray = \"#717C7C\",\n gray2 = \"#A4A7A4\",\n gray3 = \"#909398\",\n gray4 = \"#75797f\",\n gray5 = \"#5C6066\",\n\n -- Light theme colors (pearl prefix)\n pearlBlack0 = \"#22262D\",\n pearlBlack1 = \"#545464\",\n pearlBlack2 = \"#43436c\",\n pearlGray = \"#e2e1df\",\n pearlGray2 = \"#5C6068\",\n pearlGray3 = \"#6D6D69\",\n pearlGray4 = \"#9F9F99\",\n\n pearlWhite0 = \"#f2f1ef\",\n pearlWhite1 = \"#e2e1df\",\n pearlWhite2 = \"#dddddb\",\n pearlWhite3 = \"#cacac7\",\n pearlViolet1 = \"#a09cac\",\n pearlViolet2 = \"#766b90\",\n pearlViolet3 = \"#c9cbd1\",\n pearlViolet4 = \"#624c83\",\n pearlBlue1 = \"#c7d7e0\",\n pearlBlue2 = \"#b5cbd2\",\n pearlBlue3 = \"#9fb5c9\",\n pearlBlue4 = \"#4d699b\",\n pearlBlue5 = \"#5d57a3\",\n pearlGreen = \"#6f894e\",\n pearlGreen2 = \"#6e915f\",\n pearlGreen3 = \"#b7d0ae\",\n pearlPink = \"#b35b79\",\n pearlOrange = \"#cc6d00\",\n pearlOrange2 = \"#e98a00\",\n pearlYellow = \"#77713f\",\n pearlYellow2 = \"#836f4a\",\n pearlYellow3 = \"#de9800\",\n pearlYellow4 = \"#f9d791\",\n pearlRed = \"#c84053\",\n pearlRed2 = \"#d7474b\",\n pearlRed3 = \"#e82424\",\n pearlRed4 = \"#d9a594\",\n pearlAqua = \"#597b75\",\n pearlAqua2 = \"#5e857a\",\n pearlTeal1 = \"#4e8ca2\",\n pearlTeal2 = \"#6693bf\",\n pearlTeal3 = \"#5a7785\",\n pearlCyan = \"#d7e3d8\",\n\n -- Pearl contrast variants (40% more saturation)\n pearlGreenContrast = \"#5E8F2F\",\n pearlGreen2Contrast = \"#5B9945\",\n pearlGreen3Contrast = \"#A8DA9B\",\n pearlPinkContrast = \"#C04062\",\n pearlOrangeContrast = \"#E05700\",\n pearlOrange2Contrast = \"#FF7700\",\n pearlYellowContrast = \"#656720\",\n pearlYellow2Contrast = \"#72612B\",\n pearlYellow3Contrast = \"#F28C00\",\n pearlYellow4Contrast = \"#FFD56D\",\n pearlRedContrast = \"#D72436\",\n pearlRed2Contrast = \"#E42D2C\",\n pearlRed3Contrast = \"#F50000\",\n pearlRed4Contrast = \"#E4977B\",\n pearlAquaContrast = \"#3E8366\",\n pearlAqua2Contrast = \"#428F6A\",\n pearlTeal1Contrast = \"#2E96B0\",\n pearlTeal2Contrast = \"#469FD3\",\n pearlTeal3Contrast = \"#3D8077\",\n pearlBlue4Contrast = \"#2A73B1\",\n pearlBlue5Contrast = \"#3E56B8\",\n pearlViolet4Contrast = \"#44418F\",\n}\n\nlocal M = {}\n--- Generate colors table:\n--- * opts:\n--- - colors: Table of personalized colors and/or overrides of existing ones.\n--- Defaults to KansoConfig.colors.\n--- - theme: Use selected theme. Defaults to KansoConfig.theme\n--- according to the value of 'background' option.\n---@param opts? { colors?: table, theme?: string, foreground?: \"default\"|\"contrast\" }\n---@return { theme: ThemeColors, palette: PaletteColors}\nfunction M.setup(opts)\n opts = opts or {}\n local override_colors = opts.colors or require(\"kanso\").config.colors\n local theme = opts.theme or require(\"kanso\")._CURRENT_THEME -- WARN: this fails if called before kanso.load()\n\n if not theme then\n error(\n \"kanso.colors.setup(): Unable to infer `theme`. Either specify a theme or call this function after ':colorscheme kanso'\"\n )\n end\n\n -- Add to and/or override palette_colors\n local updated_palette_colors = vim.tbl_extend(\"force\", palette, override_colors.palette or {})\n\n -- Generate the theme according to the updated palette colors\n local kanso_config = require(\"kanso\").config\n local bg_mode = vim.o.background\n local foreground = opts.foreground\n or (type(kanso_config.foreground) == \"table\" and kanso_config.foreground[bg_mode])\n or kanso_config.foreground\n or \"default\"\n ---@cast foreground \"default\"|\"contrast\"\n local theme_colors = require(\"kanso.themes\")[theme](updated_palette_colors, foreground)\n\n -- Add to and/or override theme_colors\n local theme_overrides =\n vim.tbl_deep_extend(\"force\", override_colors.theme[\"all\"] or {}, override_colors.theme[theme] or {})\n local updated_theme_colors = vim.tbl_deep_extend(\"force\", theme_colors, theme_overrides)\n -- return palette_colors AND theme_colors\n\n return {\n theme = updated_theme_colors,\n palette = updated_palette_colors,\n }\nend\n\nreturn M\n"], ["/kanso.nvim/lua/kanso/highlights/init.lua", "local M = {}\n\n---@param highlights table\n---@param termcolors table\nfunction M.highlight(highlights, termcolors)\n for hl, spec in pairs(highlights) do\n vim.api.nvim_set_hl(0, hl, spec)\n end\n for i, tcolor in ipairs(termcolors) do\n vim.g[\"terminal_color_\" .. i - 1] = tcolor\n end\nend\n\n---@param colors KansoColors\n---@param config? KansoConfig\nfunction M.setup(colors, config)\n config = config or require(\"kanso\").config\n\n local highlights = {}\n for _, highlight in ipairs({ \"editor\", \"syntax\", \"treesitter\", \"lsp\", \"plugins\" }) do\n local mod = require(\"kanso.highlights.\" .. highlight)\n for hl, spec in pairs(mod.setup(colors, config)) do\n highlights[hl] = spec\n end\n end\n\n for hl, spec in pairs(config.overrides(colors)) do\n if highlights[hl] and next(spec) then\n highlights[hl].link = nil\n end\n highlights[hl] = vim.tbl_extend(\"force\", highlights[hl] or {}, spec)\n end\n\n return highlights\nend\n\nreturn M\n"], ["/kanso.nvim/lua/kanso/highlights/treesitter.lua", "local M = {}\n\n---@param colors KansoColors\n---@param config? KansoConfig\nfunction M.setup(colors, config)\n config = config or require(\"kanso\").config\n local theme = colors.theme\n return {\n -- @variable various variable names\n [\"@variable\"] = { fg = theme.ui.fg },\n -- @variable.builtin (Special) built-in variable names (e.g. `this`, `self`)\n [\"@variable.builtin\"] = { fg = theme.syn.special2, italic = config.italics },\n -- @variable.parameter parameters of a function\n [\"@variable.parameter\"] = { fg = theme.syn.parameter },\n -- @variable.parameter.builtin special parameters (e.g. `_`, `it`)\n -- @variable.member object and struct fields\n [\"@variable.member\"] = { fg = theme.syn.identifier },\n --\n -- @constant (Constant) constant identifiers\n -- @constant.builtin built-in constant values\n -- @constant.macro constants defined by the preprocessor\n --\n -- @module (Structure) modules or namespaces\n -- @module.builtin built-in modules or namespaces\n -- @label `GOTO` and other labels (e.g. `label:` in C), including heredoc labels\n --\n -- @string string literals\n -- @string.documentation string documenting code (e.g. Python docstrings)\n -- @string.regexp regular expressions\n [\"@string.regexp\"] = { fg = theme.syn.regex },\n -- @string.escape escape sequences\n [\"@string.escape\"] = { fg = theme.syn.regex },\n -- @string.special other special strings (e.g. dates)\n -- @string.special.symbol symbols or atoms\n [\"@string.special.symbol\"] = { fg = theme.syn.identifier },\n -- @string.special.path filenames\n -- @string.special.url (Underlined) URIs (e.g. hyperlinks)\n [\"@string.special.url\"] = { fg = theme.syn.special1, undercurl = true },\n -- @character character literals\n -- @character.special special characters (e.g. wildcards)\n --\n -- @boolean boolean literals\n -- @number numeric literals\n -- @number.float floating-point number literals\n --\n -- @type type or class definitions and annotations\n -- @type.builtin built-in types\n -- @type.definition identifiers in type definitions (e.g. `typedef ` in C)\n --\n -- @attribute attribute annotations (e.g. Python decorators, Rust lifetimes)\n [\"@attribute\"] = { link = \"Constant\" },\n -- @attribute.builtin builtin annotations (e.g. `@property` in Python)\n -- @property the key in key/value pairs\n --\n -- @function function definitions\n -- @function.builtin built-in functions\n -- @function.call function calls\n -- @function.macro preprocessor macros\n --\n -- @function.method method definitions\n -- @function.method.call method calls\n --\n -- @constructor constructor calls and definitions\n [\"@constructor\"] = { fg = theme.syn.special1 },\n [\"@constructor.lua\"] = { fg = theme.syn.keyword },\n -- @operator symbolic operators (e.g. `+`, `*`)\n [\"@operator\"] = { link = \"Operator\" },\n --\n -- @keyword keywords not fitting into specific categories\n -- @keyword.coroutine keywords related to coroutines (e.g. `go` in Go, `async/await` in Python)\n -- @keyword.function keywords that define a function (e.g. `func` in Go, `def` in Python)\n -- @keyword.operator operators that are English words (e.g. `and`, `or`)\n [\"@keyword.operator\"] = { fg = theme.syn.operator },\n -- @keyword.import keywords for including modules (e.g. `import`, `from` in Python)\n [\"@keyword.import\"] = { link = \"PreProc\" },\n -- @keyword.type keywords defining composite types (e.g. `struct`, `enum`)\n -- @keyword.modifier keywords defining type modifiers (e.g. `const`, `static`, `public`)\n -- @keyword.repeat keywords related to loops (e.g. `for`, `while`)\n -- @keyword.return keywords like `return` and `yield`\n [\"@keyword.return\"] = vim.tbl_extend(\n \"force\",\n { fg = theme.syn.special3 },\n not config.italics and {} or config.keywordStyle\n ),\n -- @keyword.debug keywords related to debugging\n -- @keyword.exception keywords related to exceptions (e.g. `throw`, `catch`)\n [\"@keyword.exception\"] = vim.tbl_extend(\"force\", { fg = theme.syn.special3 }, config.statementStyle),\n\n [\"@keyword.luap\"] = { link = \"@string.regex\" },\n --\n -- @keyword.conditional keywords related to conditionals (e.g. `if`, `else`)\n -- @keyword.conditional.ternary ternary operator (e.g. `?`, `:`)\n --\n -- @keyword.directive various preprocessor directives and shebangs\n -- @keyword.directive.define preprocessor definition directives\n --\n -- @punctuation.delimiter delimiters (e.g. `;`, `.`, `,`)\n [\"@punctuation.delimiter\"] = { fg = theme.syn.punct },\n -- @punctuation.bracket brackets (e.g. `()`, `{}`, `[]`)\n [\"@punctuation.bracket\"] = { fg = theme.syn.punct },\n -- @punctuation.special special symbols (e.g. `{}` in string interpolation)\n [\"@punctuation.special\"] = { fg = theme.syn.special1 },\n --\n -- @comment line and block comments\n -- @comment.documentation comments documenting code\n --\n -- @comment.error error-type comments (e.g. `ERROR`, `FIXME`, `DEPRECATED`)\n [\"@comment.error\"] = { fg = theme.ui.fg, bg = theme.diag.error, bold = config.bold },\n -- @comment.warning warning-type comments (e.g. `WARNING`, `FIX`, `HACK`)\n [\"@comment.warning\"] = { fg = theme.ui.fg_reverse, bg = theme.diag.warning, bold = config.bold },\n -- @comment.todo todo-type comments (e.g. `TODO`, `WIP`)\n -- @comment.note note-type comments (e.g. `NOTE`, `INFO`, `XXX`)\n [\"@comment.note\"] = { fg = theme.ui.fg_reverse, bg = theme.diag.hint, bold = config.bold },\n --\n -- @markup.strong bold text\n [\"@markup.strong\"] = { bold = config.bold },\n -- @markup.italic italic text\n [\"@markup.italic\"] = { italic = true },\n -- @markup.strikethrough struck-through text\n [\"@markup.strikethrough\"] = { strikethrough = true },\n -- @markup.underline underlined text (only for literal underline markup!)\n [\"@markup.underline\"] = { underline = true },\n --\n -- @markup.heading headings, titles (including markers)\n [\"@markup.heading\"] = { link = \"Function\" },\n -- @markup.heading.1 top-level heading\n -- @markup.heading.2 section heading\n -- @markup.heading.3 subsection heading\n -- @markup.heading.4 and so on\n -- @markup.heading.5 and so forth\n -- @markup.heading.6 six levels ought to be enough for anybody\n --\n -- @markup.quote block quotes\n [\"@markup.quote\"] = { link = \"@variable.parameter\" },\n -- @markup.math math environments (e.g. `$ ... $` in LaTeX)\n [\"@markup.math\"] = { link = \"Constant\" },\n -- @markup.environment environments (e.g. in LaTeX)\n [\"@markup.environment\"] = { link = \"Keyword\" },\n --\n -- @markup.link text references, footnotes, citations, etc.\n -- @markup.link.label link, reference descriptions\n -- @markup.link.url URL-style links\n [\"@markup.link.url\"] = { link = \"@string.special.url\" },\n -- @markup.raw literal or verbatim text (e.g. inline code)\n [\"@markup.raw\"] = { link = \"String\" },\n -- @markup.raw.block literal or verbatim text as a stand-alone block\n --\n -- @markup.list list markers\n -- @markup.list.checked checked todo-style list markers\n -- @markup.list.unchecked unchecked todo-style list markers\n --\n -- @diff.plus added text (for diff files)\n [\"@diff.plus\"] = { fg = theme.vcs.added },\n -- @diff.minus deleted text (for diff files)\n [\"@diff.minus\"] = { fg = theme.vcs.removed },\n -- @diff.delta changed text (for diff files)\n [\"@diff.delta\"] = { fg = theme.vcs.changed },\n --\n -- @tag XML-style tag names (e.g. in XML, HTML, etc.)\n -- @tag.builtin XML-style tag names (e.g. HTML5 tags)\n -- @tag.attribute XML-style tag attributes\n [\"@tag.attribute\"] = { fg = theme.syn.identifier },\n -- @tag.delimiter XML-style tag delimiters\n [\"@tag.delimiter\"] = { fg = theme.syn.punct },\n }\nend\n\nreturn M\n--vim: fdm=marker\n"], ["/kanso.nvim/lua/kanso/highlights/syntax.lua", "-- local c = require(\"kanso.color\")\nlocal M = {}\n\n---@param colors KansoColors\n---@param config? KansoConfig\nfunction M.setup(colors, config)\n local theme = colors.theme\n config = config or require(\"kanso\").config\n\n return {\n -- *Comment\tany comment\n Comment = vim.tbl_extend(\"force\", { fg = theme.syn.comment }, not config.italics and {} or config.commentStyle),\n\n -- *Constant\tany constant\n Constant = { fg = theme.syn.constant },\n -- String\t\ta string constant: \"this is a string\"\n String = { fg = theme.syn.string },\n -- Character\ta character constant: 'c', '\\n'\n Character = { link = \"String\" },\n -- Number\t\ta number constant: 234, 0xff\n Number = { fg = theme.syn.number },\n -- Boolean\ta boolean constant: TRUE, false\n Boolean = { fg = theme.syn.constant },\n -- Float\t\ta floating point constant: 2.3e10\n Float = { link = \"Number\" },\n\n -- *Identifier\tany variable name\n Identifier = { fg = theme.syn.identifier },\n -- Function\tfunction name (also: methods for classes)\n Function = vim.tbl_extend(\"force\", { fg = theme.syn.fun }, config.functionStyle),\n\n -- *Statement\tany statement\n Statement = vim.tbl_extend(\"force\", { fg = theme.syn.statement }, config.statementStyle),\n -- Conditional\tif, then, else, endif, switch, etc.\n -- Repeat\t\tfor, do, while, etc.\n -- Label\t\tcase, default, etc.\n -- Operator\t\"sizeof\", \"+\", \"*\", etc.\n Operator = { fg = theme.syn.operator },\n -- Keyword\tany other keyword\n Keyword = vim.tbl_extend(\"force\", { fg = theme.syn.keyword }, not config.italics and {} or config.keywordStyle),\n -- Exception\ttry, catch, throw\n Exception = { fg = theme.syn.special2 },\n\n -- *PreProc\tgeneric Preprocessor\n PreProc = { fg = theme.syn.preproc },\n -- Include\tpreprocessor #include\n -- Define\t\tpreprocessor #define\n -- Macro\t\tsame as Define\n -- PreCondit\tpreprocessor #if, #else, #endif, etc.\n\n -- *Type\t\tint, long, char, etc.\n Type = vim.tbl_extend(\"force\", { fg = theme.syn.type }, config.typeStyle),\n -- StorageClass\tstatic, register, volatile, etc.\n -- Structure\tstruct, union, enum, etc.\n -- Typedef\tA typedef\n\n -- *Special\tany special symbol\n Special = { fg = theme.syn.special1 },\n -- SpecialChar\tspecial character in a constant\n -- Tag\t\tyou can use CTRL-] on this\n -- Delimiter\tcharacter that needs attention\n Delimiter = { fg = theme.syn.punct },\n -- SpecialComment\tspecial things inside a comment\n -- Debug\t\tdebugging statements\n\n -- *Underlined\ttext that stands out, HTML links\n Underlined = { fg = theme.syn.special1, underline = true },\n Bold = { bold = config.bold },\n Italic = { italic = config.italics },\n\n -- *Ignore\t\tleft blank, hidden |hl-Ignore|\n Ignore = { link = \"NonText\" },\n\n -- *Error\t\tany erroneous construct\n Error = { fg = theme.diag.error },\n\n -- *Todo\t\tanything that needs extra attention; mostly the keywords TODO FIXME WARNING and XXX\n Todo = { fg = theme.ui.fg_reverse, bg = theme.diag.info, bold = config.bold },\n\n qfLineNr = { link = \"lineNr\" },\n qfFileName = { link = \"Directory\" },\n\n -- htmlH1 = {},\n -- htmlH2 = {},\n\n -- mkdHeading = {},\n -- mkdCode = {},\n -- mkdCodeDelimiter = {},\n -- mkdCodeStart = {},\n -- mkdCodeEnd = {},\n -- mkdLink = {},\n\n -- markdownHeadingDelimiter = {},\n markdownCode = { fg = theme.syn.string },\n markdownCodeBlock = { fg = theme.syn.string },\n markdownEscape = { fg = theme.ui.none },\n -- markdownH1 = {},\n -- markdownH2 = {},\n -- markdownLinkText = {},\n }\nend\n\nreturn M\n"], ["/kanso.nvim/lua/kanso/themes.lua", "--TODO:\n--PreProc needs its own color\n--parameter and field should be different\n---@class SyntaxElements\n---@field string ColorSpec\n---@field variable ColorSpec\n---@field number ColorSpec\n---@field constant ColorSpec\n---@field identifier ColorSpec\n---@field parameter ColorSpec\n---@field fun ColorSpec\n---@field statement ColorSpec\n---@field keyword ColorSpec\n---@field operator ColorSpec\n---@field preproc ColorSpec\n---@field type ColorSpec\n---@field regex ColorSpec\n---@field deprecated ColorSpec\n---@field comment ColorSpec\n---@field punct ColorSpec\n---@field special1 ColorSpec\n---@field special2 ColorSpec\n---@field special3 ColorSpec\n\n---@class DiagnosticsElements\n---@field error ColorSpec\n---@field ok ColorSpec\n---@field warning ColorSpec\n---@field info ColorSpec\n---@field hint ColorSpec\n--\n---@class DiffElements\n---@field add ColorSpec\n---@field delete ColorSpec\n---@field change ColorSpec\n---@field text ColorSpec\n\n---@class VCSElements\n---@field added ColorSpec\n---@field removed ColorSpec\n---@field changed ColorSpec\n---@field untracked ColorSpec\n\n---@class UiElements\n---@field none ColorSpec\n---@field fg ColorSpec Default foreground\n---@field fg_dim ColorSpec Dimmed foreground\n---@field fg_reverse ColorSpec\n---@field bg_dim ColorSpec Dimmed background\n---@field bg_m3 ColorSpec\n---@field bg_m2 ColorSpec\n---@field bg_m1 ColorSpec\n---@field bg ColorSpec Default background\n---@field bg_p1 ColorSpec Lighter background ColorColumn, Folded, Gutter\n---@field bg_p2 ColorSpec Lighter background Cursor{Line,Column}, TabLineSel (Selected Items)\n---@field bg_gutter ColorSpec {Sign,Fold}Column, LineNr\n---@field special ColorSpec SpecialKey\n---@field indent_line ColorSpec IndentLine\n---@field active_indent_line ColorSpec IndentLine\n---@field nontext ColorSpec LineNr, NonText\n---@field whitespace ColorSpec Whitespace\n---@field bg_search ColorSpec\n---@field bg_visual ColorSpec\n---@field cursor_line_nr_foreground ColorSpec\n---@field cursor_line_nr_active_foreground ColorSpec\n---@field cursor_bg ColorSpec\n---@field cursor_fg ColorSpec\n---@field pmenu MenuElements\n---@field float FloatElements\n\n---@class FloatElements\n---@field fg ColorSpec\n---@field bg ColorSpec\n---@field fg_border ColorSpec\n---@field bg_border ColorSpec\n\n---@class MenuElements\n---@field bg ColorSpec\n---@field fg ColorSpec\n---@field fg_sel ColorSpec\n---@field bg_sel ColorSpec\n---@field bg_sbar ColorSpec\n---@field bg_thumb ColorSpec\n\n---@class ThemeColors\n---@field syn SyntaxElements\n---@field diag DiagnosticsElements\n---@field vcs VCSElements\n---@field diff DiffElements\n---@field ui UiElements\n---@field term ColorSpec[]\n\nreturn {\n ---@param palette PaletteColors\n ---@param foreground? \"default\"|\"contrast\"\n ---@return ThemeColors\n zen = function(palette, foreground)\n return {\n ui = {\n none = \"NONE\",\n fg = palette.fg,\n fg_dim = palette.gray2,\n fg_reverse = palette.altBlue1,\n\n bg_dim = palette.zenBg0,\n\n bg_m3 = palette.zenBg0,\n bg_m2 = palette.zenBg0,\n bg_m1 = palette.zenBg0,\n bg = palette.zenBg0,\n bg_p1 = palette.zenBg1,\n bg_p2 = palette.zenBg2,\n\n special = palette.gray5,\n indent_line = palette.inkBg2,\n active_indent_line = palette.inkBg3,\n whitespace = palette.inkBg3,\n nontext = palette.gray5,\n\n bg_visual = palette.inkBg3,\n bg_search = palette.altBlue2,\n\n cursor_line_nr_foreground = palette.gray5,\n cursor_line_nr_active_foreground = palette.fg2,\n cursor_bg = palette.fg2,\n cursor_fg = palette.zenBg0,\n\n pmenu = {\n fg = palette.fg2,\n fg_sel = \"NONE\",\n bg = palette.zenBg0,\n bg_sel = palette.inkBg3,\n bg_thumb = palette.inkBg3,\n bg_sbar = palette.zenBg0,\n },\n\n float = {\n fg = palette.gray2,\n bg = palette.zenBg0,\n fg_border = palette.zenBg2,\n bg_border = palette.zenBg0,\n },\n },\n syn = {\n string = foreground == \"contrast\" and palette.green3Contrast or palette.green3,\n variable = \"NONE\",\n number = foreground == \"contrast\" and palette.pinkContrast or palette.pink,\n constant = foreground == \"contrast\" and palette.orangeContrast or palette.orange,\n identifier = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n parameter = palette.gray3,\n fun = foreground == \"contrast\" and palette.blue3Contrast or palette.blue3,\n statement = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n keyword = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n operator = palette.gray3,\n preproc = palette.gray3,\n type = foreground == \"contrast\" and palette.aquaContrast or palette.aqua,\n regex = foreground == \"contrast\" and palette.red3Contrast or palette.red3,\n deprecated = palette.gray,\n punct = palette.gray3,\n comment = palette.gray4,\n special1 = foreground == \"contrast\" and palette.yellow3Contrast or palette.yellow3,\n special2 = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n special3 = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n },\n diag = {\n error = palette.red,\n ok = palette.green,\n warning = palette.yellow,\n info = palette.blue2,\n hint = palette.green4,\n },\n diff = {\n add = palette.diffGreen,\n delete = palette.diffRed,\n change = palette.diffBlue,\n text = palette.diffYellow,\n },\n vcs = {\n added = palette.gitGreen,\n removed = palette.gitRed,\n changed = palette.gitYellow,\n untracked = palette.gray4,\n },\n term = {\n palette.zenBg0, -- black\n palette.red3, -- red\n palette.green3, -- green\n palette.yellow3, -- yellow\n palette.blue3, -- blue\n palette.pink, -- magenta\n palette.fg, -- cyan\n palette.gray2, -- white\n palette.gray3, -- bright black\n palette.red2, -- bright red\n palette.green2, -- bright green\n palette.yellow2, -- bright yellow\n palette.blue, -- bright blue\n palette.violet, -- bright magenta\n palette.green5, -- bright cyan\n palette.fg, -- bright white\n palette.orange, -- extended color 1\n palette.orange2, -- extended color 2\n },\n }\n end,\n ---@param palette PaletteColors\n ---@param foreground? \"default\"|\"contrast\"\n ---@return ThemeColors\n ink = function(palette, foreground)\n return {\n ui = {\n none = \"NONE\",\n fg = palette.fg,\n fg_dim = palette.gray2,\n fg_reverse = palette.altBlue1,\n\n bg_dim = palette.inkBg0,\n\n bg_m3 = palette.inkBg0,\n bg_m2 = palette.inkBg0,\n bg_m1 = palette.inkBg0,\n bg = palette.inkBg0,\n bg_p1 = palette.inkBg1,\n bg_p2 = palette.inkBg2,\n\n special = palette.gray5,\n indent_line = palette.inkBg2,\n active_indent_line = palette.inkBg3,\n whitespace = palette.inkBg4,\n nontext = palette.gray5,\n\n bg_visual = palette.inkBg3,\n bg_search = palette.altBlue2,\n\n cursor_line_nr_foreground = palette.gray5,\n cursor_line_nr_active_foreground = palette.fg2,\n cursor_bg = palette.fg2,\n cursor_fg = palette.inkBg0,\n\n pmenu = {\n fg = palette.fg2,\n fg_sel = \"NONE\",\n bg = palette.inkBg0,\n bg_sel = palette.inkBg3,\n bg_thumb = palette.inkBg3,\n bg_sbar = palette.inkBg0,\n },\n\n float = {\n fg = palette.gray2,\n bg = palette.inkBg0,\n fg_border = palette.inkBg2,\n bg_border = palette.inkBg0,\n },\n },\n syn = {\n string = foreground == \"contrast\" and palette.green3Contrast or palette.green3,\n variable = \"NONE\",\n number = foreground == \"contrast\" and palette.pinkContrast or palette.pink,\n constant = foreground == \"contrast\" and palette.orangeContrast or palette.orange,\n identifier = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n parameter = palette.gray3,\n fun = foreground == \"contrast\" and palette.blue3Contrast or palette.blue3,\n statement = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n keyword = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n operator = palette.gray3,\n preproc = palette.gray3,\n type = foreground == \"contrast\" and palette.aquaContrast or palette.aqua,\n regex = foreground == \"contrast\" and palette.red3Contrast or palette.red3,\n deprecated = palette.gray,\n punct = palette.gray3,\n comment = palette.gray4,\n special1 = foreground == \"contrast\" and palette.yellow3Contrast or palette.yellow3,\n special2 = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n special3 = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n },\n diag = {\n error = palette.red,\n ok = palette.green,\n warning = palette.yellow,\n info = palette.blue2,\n hint = palette.green4,\n },\n diff = {\n add = palette.diffGreen,\n delete = palette.diffRed,\n change = palette.diffBlue,\n text = palette.diffYellow,\n },\n vcs = {\n added = palette.gitGreen,\n removed = palette.gitRed,\n changed = palette.gitYellow,\n untracked = palette.gray4,\n },\n term = {\n palette.inkBg0, -- black\n palette.red3, -- red\n palette.green3, -- green\n palette.yellow3, -- yellow\n palette.blue3, -- blue\n palette.pink, -- magenta\n palette.fg, -- cyan\n palette.gray2, -- white\n palette.gray3, -- bright black\n palette.red2, -- bright red\n palette.green2, -- bright green\n palette.yellow2, -- bright yellow\n palette.blue, -- bright blue\n palette.violet, -- bright magenta\n palette.green5, -- bright cyan\n palette.fg, -- bright white\n palette.orange, -- extended color 1\n palette.orange2, -- extended color 2\n },\n }\n end,\n ---@param palette PaletteColors\n ---@param foreground? \"default\"|\"contrast\"\n ---@return ThemeColors\n pearl = function(palette, foreground)\n return {\n ui = {\n none = \"NONE\",\n fg = palette.pearlBlack0,\n fg_dim = palette.pearlBlack1,\n fg_reverse = palette.pearlGray,\n\n bg_dim = palette.pearlWhite0,\n\n bg_m3 = palette.pearlWhite0,\n bg_m2 = palette.pearlWhite0,\n bg_m1 = palette.pearlWhite0,\n bg = palette.pearlWhite0,\n bg_p1 = palette.pearlWhite1,\n bg_p2 = palette.pearlWhite1,\n\n nontext = palette.pearlViolet1,\n whitespace = palette.pearlWhite3,\n special = palette.pearlViolet2,\n indent_line = palette.pearlWhite2,\n active_indent_line = palette.pearlWhite2,\n\n bg_visual = palette.pearlWhite2,\n bg_search = palette.pearlBlue2,\n\n cursor_line_nr_foreground = palette.pearlGray4,\n cursor_line_nr_active_foreground = palette.inkBg2,\n cursor_bg = palette.fg2,\n cursor_fg = palette.inkBg2,\n\n pmenu = {\n fg = palette.pearlBlack2,\n fg_sel = \"NONE\", -- This is important to make highlights pass-through\n bg = palette.pearlWhite0,\n bg_sel = palette.pearlWhite2,\n bg_thumb = palette.pearlWhite2,\n bg_sbar = palette.pearlWhite0,\n },\n float = {\n fg = palette.pearlBlack2,\n bg = palette.pearlWhite0,\n fg_border = palette.pearlWhite2,\n bg_border = palette.pearlWhite0,\n },\n },\n syn = {\n string = foreground == \"contrast\" and palette.pearlGreenContrast or palette.pearlGreen,\n variable = \"NONE\",\n number = foreground == \"contrast\" and palette.pearlPinkContrast or palette.pearlPink,\n constant = foreground == \"contrast\" and palette.pearlOrangeContrast or palette.pearlOrange,\n identifier = foreground == \"contrast\" and palette.pearlViolet4Contrast or palette.pearlViolet4,\n parameter = foreground == \"contrast\" and palette.pearlBlue5Contrast or palette.pearlBlue5,\n fun = foreground == \"contrast\" and palette.pearlBlue4Contrast or palette.pearlBlue4,\n statement = foreground == \"contrast\" and palette.pearlViolet4Contrast or palette.pearlViolet4,\n keyword = foreground == \"contrast\" and palette.pearlViolet4Contrast or palette.pearlViolet4,\n operator = palette.pearlGray3,\n preproc = palette.pearlGray2,\n type = foreground == \"contrast\" and palette.pearlAquaContrast or palette.pearlAqua,\n regex = foreground == \"contrast\" and palette.pearlYellow2Contrast or palette.pearlYellow2,\n deprecated = palette.pearlGray3,\n comment = palette.pearlGray3,\n punct = palette.pearlGray3,\n special1 = foreground == \"contrast\" and palette.pearlYellow2Contrast or palette.pearlYellow2,\n special2 = foreground == \"contrast\" and palette.pearlViolet4Contrast or palette.pearlViolet4,\n special3 = foreground == \"contrast\" and palette.pearlViolet4Contrast or palette.pearlViolet4,\n },\n vcs = {\n added = palette.pearlGreen2,\n removed = palette.pearlRed2,\n changed = palette.pearlYellow3,\n untracked = palette.pearlGray4,\n },\n diff = {\n add = palette.pearlGreen3,\n delete = palette.pearlRed4,\n change = palette.pearlCyan,\n text = palette.pearlYellow4,\n },\n diag = {\n error = palette.pearlRed3,\n ok = palette.pearlGreen,\n warning = palette.pearlOrange2,\n info = palette.pearlTeal3,\n hint = palette.pearlAqua2,\n },\n term = {\n palette.inkBg2, -- black\n palette.pearlRed, -- red\n palette.pearlGreen, -- green\n palette.pearlYellow, -- yellow\n palette.pearlBlue4, -- blue\n palette.pearlPink, -- magenta\n palette.pearlAqua, -- cyan\n palette.pearlBlack0, -- white\n palette.pearlGray3, -- bright black\n palette.pearlRed2, -- bright red\n palette.pearlGreen2, -- bright green\n palette.pearlYellow2, -- bright yellow\n palette.pearlTeal2, -- bright blue\n palette.pearlViolet4, -- bright magenta\n palette.pearlAqua2, -- bright cyan\n palette.pearlBlack2, -- bright white\n palette.pearlOrange2, -- extended color 1\n palette.pearlRed3, -- extended color 2\n },\n }\n end,\n ---@param palette PaletteColors\n ---@param foreground? \"default\"|\"contrast\"\n ---@return ThemeColors\n mist = function(palette, foreground)\n return {\n ui = {\n none = \"NONE\",\n fg = palette.fg,\n fg_dim = palette.gray2,\n fg_reverse = palette.altBlue1,\n\n bg_dim = palette.mistBg0,\n\n bg_m3 = palette.mistBg0,\n bg_m2 = palette.mistBg0,\n bg_m1 = palette.mistBg0,\n bg = palette.mistBg0,\n bg_p1 = palette.mistBg2,\n bg_p2 = palette.mistBg2,\n\n special = palette.gray5,\n indent_line = palette.gray5,\n active_indent_line = palette.gray5,\n whitespace = palette.mistBg3,\n nontext = palette.gray5,\n\n bg_visual = palette.mistBg2,\n bg_search = palette.altBlue2,\n\n cursor_line_nr_foreground = palette.gray4,\n cursor_line_nr_active_foreground = palette.fg2,\n cursor_bg = palette.fg2,\n cursor_fg = palette.mistBg0,\n\n pmenu = {\n fg = palette.fg2,\n fg_sel = \"NONE\",\n bg = palette.mistBg0,\n bg_sel = palette.mistBg2,\n bg_thumb = palette.mistBg2,\n bg_sbar = palette.mistBg0,\n },\n\n float = {\n fg = palette.gray2,\n bg = palette.mistBg0,\n fg_border = palette.mistBg2,\n bg_border = palette.mistBg0,\n },\n },\n syn = {\n string = foreground == \"contrast\" and palette.green3Contrast or palette.green3,\n variable = \"NONE\",\n number = foreground == \"contrast\" and palette.pinkContrast or palette.pink,\n constant = foreground == \"contrast\" and palette.orangeContrast or palette.orange,\n identifier = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n parameter = palette.gray3,\n fun = foreground == \"contrast\" and palette.blue3Contrast or palette.blue3,\n statement = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n keyword = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n operator = palette.gray3,\n preproc = palette.gray3,\n type = foreground == \"contrast\" and palette.aquaContrast or palette.aqua,\n regex = foreground == \"contrast\" and palette.red3Contrast or palette.red3,\n deprecated = palette.gray,\n punct = palette.gray3,\n comment = palette.gray4,\n special1 = foreground == \"contrast\" and palette.yellow3Contrast or palette.yellow3,\n special2 = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n special3 = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n },\n diag = {\n error = palette.red,\n ok = palette.green,\n warning = palette.yellow,\n info = palette.blue2,\n hint = palette.green4,\n },\n diff = {\n add = palette.diffGreen,\n delete = palette.diffRed,\n change = palette.diffBlue,\n text = palette.diffYellow,\n },\n vcs = {\n added = palette.gitGreen,\n removed = palette.gitRed,\n changed = palette.gitYellow,\n untracked = palette.gray4,\n },\n term = {\n palette.mistBg0, -- black\n palette.red3, -- red\n palette.green3, -- green\n palette.yellow3, -- yellow\n palette.blue3, -- blue\n palette.pink, -- magenta\n palette.fg, -- cyan\n palette.gray2, -- white\n palette.gray3, -- bright black\n palette.red2, -- bright red\n palette.green2, -- bright green\n palette.yellow2, -- bright yellow\n palette.blue, -- bright blue\n palette.violet, -- bright magenta\n palette.green5, -- bright cyan\n palette.fg, -- bright white\n palette.orange, -- extended color 1\n palette.orange2, -- extended color 2\n },\n }\n end,\n}\n"], ["/kanso.nvim/lua/kanso/highlights/editor.lua", "-- local c = require(\"kanso.color\")\nlocal M = {}\n\n---@param colors KansoColors\n---@param config? KansoConfig\nfunction M.setup(colors, config)\n local theme = colors.theme\n config = config or require(\"kanso\").config\n\n return {\n -- ColorColumn\tUsed for the columns set with 'colorcolumn'.\n ColorColumn = { bg = theme.ui.bg_p1 },\n -- Conceal\t\tPlaceholder characters substituted for concealed text (see 'conceallevel').\n Conceal = { fg = theme.ui.special, bold = config.bold },\n -- CurSearch\tUsed for highlighting a search pattern under the cursor (see 'hlsearch').\n CurSearch = { fg = theme.ui.fg, bg = theme.ui.bg_search, bold = config.bold },\n -- Cursor\t\tCharacter under the cursor.\n Cursor = { fg = theme.ui.cursor_fg, bg = theme.ui.cursor_bg },\n -- lCursor\t\tCharacter under the cursor when |language-mapping| is used (see 'guicursor').\n lCursor = { link = \"Cursor\" },\n -- CursorIM\tLike Cursor, but used when in IME mode.\n CursorIM = { link = \"Cursor\" },\n -- CursorColumn\tScreen-column at the cursor, when 'cursorcolumn' is set.\n CursorColumn = { link = \"CursorLine\" },\n -- CursorLine\tScreen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set.\n CursorLine = { bg = theme.ui.bg_p2 },\n -- Directory\tDirectory names (and other special names in listings).\n Directory = { fg = theme.syn.fun },\n -- DiffAdd\t\tDiff mode: Added line. |diff.txt|\n DiffAdd = { bg = theme.diff.add },\n -- DiffChange\tDiff mode: Changed line. |diff.txt|\n DiffChange = { bg = theme.diff.change },\n -- DiffDelete\tDiff mode: Deleted line. |diff.txt|\n DiffDelete = { fg = theme.vcs.removed, bg = theme.diff.delete },\n -- DiffText\tDiff mode: Changed text within a changed line. |diff.txt|\n DiffText = { bg = theme.diff.text },\n -- EndOfBuffer\tFiller lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.\n EndOfBuffer = { fg = theme.ui.bg },\n -- TermCursor\tCursor in a focused terminal.\n -- TermCursorNC\tCursor in an unfocused terminal.\n -- ErrorMsg\tError messages on the command line.\n ErrorMsg = { fg = theme.diag.error },\n -- WinSeparator\tSeparators between window splits.\n WinSeparator = { fg = theme.ui.bg_m3, bg = config.dimInactive and theme.ui.bg_dim or theme.ui.none },\n VertSplit = { link = \"WinSeparator\" },\n -- Folded\t\tLine used for closed folds.\n Folded = { fg = theme.ui.special, bg = theme.ui.bg_p1 },\n -- FoldColumn\t'foldcolumn'\n FoldColumn = { fg = theme.ui.nontext, bg = theme.ui.none },\n -- SignColumn\tColumn where |signs| are displayed.\n SignColumn = { fg = theme.ui.special, bg = theme.ui.none },\n -- IncSearch\t'incsearch' highlighting; also used for the text replaced with \":s///c\".\n IncSearch = { fg = theme.ui.fg_reverse, bg = theme.diag.warning },\n -- Substitute\t|:substitute| replacement text highlighting.\n Substitute = { fg = theme.ui.fg, bg = theme.vcs.removed },\n -- LineNr\t\tLine number for \":number\" and \":#\" commands, and when 'number' or 'relativenumber' option is set.\n LineNr = { fg = theme.ui.cursor_line_nr_foreground, bg = theme.ui.none },\n -- LineNrAbove\tLine number for when the 'relativenumber' option is set, above the cursor line.\n -- LineNrBelow\tLine number for when the 'relativenumber' option is set, below the cursor line.\n -- CursorLineNr\tLike LineNr when 'cursorline' is set and 'cursorlineopt' contains \"number\" or is \"both\", for the cursor line.\n CursorLineNr = { fg = theme.ui.cursor_line_nr_active_foreground, bg = theme.ui.none },\n -- CursorLineFold\tLike FoldColumn when 'cursorline' is set for the cursor line.\n -- CursorLineSign\tLike SignColumn when 'cursorline' is set for the cursor line.\n -- MatchParen\tCharacter under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt|\n MatchParen = { fg = theme.diag.warning, bold = config.bold },\n -- ModeMsg\t\t'showmode' message (e.g., \"-- INSERT --\").\n ModeMsg = { fg = theme.diag.warning, bold = config.bold },\n -- MsgArea\t\tArea for messages and cmdline.\n MsgArea = vim.o.cmdheight == 0 and { link = \"StatusLine\" } or { fg = theme.ui.fg_dim },\n -- MsgSeparator\tSeparator for scrolled messages |msgsep|.\n MsgSeparator = { bg = vim.o.cmdheight == 0 and theme.ui.bg or theme.ui.bg_m3 },\n -- MoreMsg\t\t|more-prompt|\n MoreMsg = { fg = theme.diag.info },\n -- NonText\t\t'@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., \">\" displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|.\n NonText = { fg = theme.ui.nontext },\n -- Normal\t\tNormal text.\n Normal = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },\n -- NormalFloat\tNormal text in floating windows.\n NormalFloat = { fg = theme.ui.float.fg, bg = config.transparent and theme.ui.none or theme.ui.float.bg },\n -- FloatBorder\tBorder of floating windows.\n FloatBorder = {\n fg = theme.ui.float.fg_border,\n bg = config.transparent and theme.ui.none or theme.ui.float.bg_border,\n },\n -- FloatTitle\tTitle of floating windows.\n FloatTitle = {\n fg = theme.ui.special,\n bg = config.transparent and theme.ui.none or theme.ui.float.bg_border,\n bold = config.bold,\n },\n -- FloatFooter\tFooter of floating windows.\n FloatFooter = { fg = theme.ui.nontext, bg = config.transparent and theme.ui.none or theme.ui.float.bg_border },\n -- NormalNC\tNormal text in non-current windows.\n NormalNC = config.dimInactive and { fg = theme.ui.fg_dim, bg = theme.ui.bg_dim } or { link = \"Normal\" },\n -- Pmenu\t\tPopup menu: Normal item.\n Pmenu = { fg = theme.ui.pmenu.fg, bg = config.transparent and theme.ui.none or theme.ui.pmenu.bg },\n -- PmenuSel\tPopup menu: Selected item.\n PmenuSel = { fg = theme.ui.pmenu.fg_sel, bg = theme.ui.pmenu.bg_sel },\n -- PmenuKind\tPopup menu: Normal item \"kind\".\n PmenuKind = { fg = theme.ui.fg_dim, bg = config.transparent and theme.ui.none or theme.ui.pmenu.bg },\n -- PmenuKindSel\tPopup menu: Selected item \"kind\".\n PmenuKindSel = { fg = theme.ui.fg_dim, bg = theme.ui.pmenu.bg_sel },\n -- PmenuExtra\tPopup menu: Normal item \"extra text\".\n PmenuExtra = { fg = theme.ui.special, bg = theme.ui.pmenu.bg },\n -- PmenuExtraSel\tPopup menu: Selected item \"extra text\".\n PmenuExtraSel = { fg = theme.ui.special, bg = theme.ui.pmenu.bg_sel },\n -- PmenuSbar\tPopup menu: Scrollbar.\n PmenuSbar = { bg = config.transparent and theme.ui.none or theme.ui.pmenu.bg_sbar },\n -- PmenuThumb\tPopup menu: Thumb of the scrollbar.\n PmenuThumb = { bg = theme.ui.pmenu.bg_thumb },\n -- Question\t|hit-enter| prompt and yes/no questions.\n Question = { link = \"MoreMsg\" },\n -- QuickFixLine\tCurrent |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.\n QuickFixLine = { bg = config.transparent and theme.ui.none or theme.ui.bg_p1 },\n -- Search\t\tLast search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.\n Search = { fg = theme.ui.fg, bg = theme.ui.bg_search },\n -- SpecialKey\tUnprintable characters: Text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace|\n SpecialKey = { fg = theme.ui.special },\n -- SpellBad\tWord that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise.\n SpellBad = { undercurl = config.undercurl, underline = not config.undercurl, sp = theme.diag.error },\n -- SpellCap\tWord that should start with a capital. |spell| Combined with the highlighting used otherwise.\n SpellCap = { undercurl = config.undercurl, underline = not config.undercurl, sp = theme.diag.warning },\n -- SpellLocal\tWord that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise.\n SpellLocal = { undercurl = config.undercurl, underline = not config.undercurl, sp = theme.diag.warning },\n -- SpellRare\tWord that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise.\n SpellRare = { undercurl = config.undercurl, underline = not config.undercurl, sp = theme.diag.warning },\n -- StatusLine\tStatus line of current window.\n StatusLine = { fg = theme.ui.fg_dim, bg = theme.ui.none },\n -- StatusLineNC\tStatus lines of not-current windows. Note: If this is equal to \"StatusLine\", Vim will use \"^^^\" in the status line of the current window.\n StatusLineNC = { fg = theme.ui.nontext, bg = theme.ui.none },\n -- TabLine\t\tTab pages line, not active tab page label.\n TabLine = { bg = theme.ui.none, fg = theme.ui.special },\n -- TabLineFill\tTab pages line, where there are no labels.\n TabLineFill = { bg = theme.ui.none },\n -- TabLineSel\tTab pages line, active tab page label.\n TabLineSel = {\n fg = theme.ui.fg_dim,\n bg = not config.transparent and theme.ui.bg_p1 or theme.ui.none,\n bold = config.bold,\n },\n -- Title\t\tTitles for output from \":set all\", \":autocmd\" etc.\n Title = { fg = theme.syn.fun, bold = config.bold },\n -- Visual\t\tVisual mode selection.\n Visual = { bg = theme.ui.bg_visual },\n -- VisualNOS\tVisual mode selection when vim is \"Not Owning the Selection\".\n VisualNOS = { link = \"Visual\" },\n -- WarningMsg\tWarning messages.\n WarningMsg = { fg = theme.diag.warning },\n -- Whitespace\t\"nbsp\", \"space\", \"tab\", \"multispace\", \"lead\" and \"trail\" in 'listchars'.\n Whitespace = { fg = theme.ui.whitespace },\n -- WildMenu\tCurrent match in 'wildmenu' completion.\n WildMenu = { link = \"Pmenu\" },\n -- WinBar\t\tWindow bar of current window.\n WinBar = { fg = theme.ui.fg_dim, bg = theme.ui.none },\n -- WinBarNC\tWindow bar of not-current windows.\n WinBarNC = { fg = theme.ui.fg_dim, bg = config.dimInactive and theme.ui.bg_dim or theme.ui.none },\n\n -- SignColumnSB = { link = \"SignColumn\" },\n -- NormalSB = { link = \"Normal\" },\n\n debugPC = { bg = theme.diff.delete },\n debugBreakpoint = { fg = theme.syn.special1, bg = theme.ui.none },\n\n LspReferenceText = { bg = theme.ui.bg_p2 },\n LspReferenceRead = { link = \"LspReferenceText\" },\n LspReferenceWrite = { bg = theme.ui.bg_p2, underline = true },\n -- LspInlayHint = { link = \"NonText\"},\n\n DiagnosticError = { fg = theme.diag.error },\n DiagnosticWarn = { fg = theme.diag.warning },\n DiagnosticInfo = { fg = theme.diag.info },\n DiagnosticHint = { fg = theme.diag.hint },\n DiagnosticOk = { fg = theme.diag.ok },\n\n DiagnosticFloatingError = { fg = theme.diag.error },\n DiagnosticFloatingWarn = { fg = theme.diag.warning },\n DiagnosticFloatingInfo = { fg = theme.diag.info },\n DiagnosticFloatingHint = { fg = theme.diag.hint },\n DiagnosticFloatingOk = { fg = theme.diag.ok },\n\n DiagnosticSignError = { fg = theme.diag.error, bg = theme.ui.none },\n DiagnosticSignWarn = { fg = theme.diag.warning, bg = theme.ui.none },\n DiagnosticSignInfo = { fg = theme.diag.info, bg = theme.ui.none },\n DiagnosticSignHint = { fg = theme.diag.hint, bg = theme.ui.none },\n\n DiagnosticVirtualTextError = { link = \"DiagnosticError\" },\n DiagnosticVirtualTextWarn = { link = \"DiagnosticWarn\" },\n DiagnosticVirtualTextInfo = { link = \"DiagnosticInfo\" },\n DiagnosticVirtualTextHint = { link = \"DiagnosticHint\" },\n\n DiagnosticUnderlineError = {\n undercurl = config.undercurl,\n underline = not config.undercurl,\n sp = theme.diag.error,\n },\n DiagnosticUnderlineWarn = {\n undercurl = config.undercurl,\n underline = not config.undercurl,\n sp = theme.diag.warning,\n },\n DiagnosticUnderlineInfo = {\n undercurl = config.undercurl,\n underline = not config.undercurl,\n sp = theme.diag.info,\n },\n DiagnosticUnderlineHint = {\n undercurl = config.undercurl,\n underline = not config.undercurl,\n sp = theme.diag.hint,\n },\n\n LspSignatureActiveParameter = { fg = theme.diag.warning },\n LspCodeLens = { fg = theme.syn.comment },\n\n -- vcs\n diffAdded = { fg = theme.vcs.added },\n diffRemoved = { fg = theme.vcs.removed },\n diffDeleted = { fg = theme.vcs.removed },\n diffChanged = { fg = theme.vcs.changed },\n diffOldFile = { fg = theme.vcs.removed },\n diffNewFile = { fg = theme.vcs.added },\n -- diffFile = { fg = c.steelGray },\n -- diffLine = { fg = c.steelGray },\n -- diffIndexLine = { link = 'Identifier' },\n }\nend\n\nreturn M\n"], ["/kanso.nvim/lua/kanso/lib/color.lua", "local hsluv = require(\"kanso.lib.hsluv\")\n\n---@class HSLuvColor\nlocal Color = {}\nlocal Color_mt = {\n __index = Color,\n __tostring = function(self)\n return self:to_hex()\n end,\n}\n\nlocal function none_to_hex()\n return \"NONE\"\nend\n\n---Create a new HSLuv color object from a RGB hex string\n---@param hex string Hex color\n---@return HSLuvColor\nfunction Color.new(hex)\n if hex:lower() == \"none\" then\n return setmetatable({ H = 0, S = 0, L = 0, to_hex = none_to_hex }, Color_mt)\n end\n local H, S, L = unpack(hsluv.hex_to_hsluv(hex))\n return setmetatable({ H = H, S = S, L = L }, Color_mt)\nend\n\nfunction Color:to_rgb()\n return hsluv.hsluv_to_rgb({ self.H, self.S, self.L })\nend\n\nfunction Color:to_hex()\n return hsluv.hsluv_to_hex({ self.H, self.S, self.L })\nend\n\nlocal function blendRGB(a, b, r)\n local c = {}\n for i = 1, 3 do\n c[i] = math.sqrt((1 - r) * math.pow(a[i], 2) + r * math.pow(b[i], 2))\n end\n return c\nend\n\n--- Blend Color with another color (hex)\n---@param b string Hex color\n---@param r number Blend ratio [0, 1]\n---@return HSLuvColor\nfunction Color:blend(b, r)\n if b:lower() == \"none\" then\n return self\n end\n local c = blendRGB(self:to_rgb(), hsluv.hex_to_rgb(b), r)\n self.H, self.S, self.L = unpack(hsluv.rgb_to_hsluv(c))\n return self\nend\n\n---@param r number Brighten ratio [-1, 1]\n---@param bg? string background color, if light, r = -r\n---@return HSLuvColor\nfunction Color:brighten(r, bg)\n if bg and bg:lower() == \"none\" then\n return self\n end\n local bg_lightness = bg and hsluv.hex_to_hsluv(bg)[3] or 0\n r = bg_lightness > 50 and -r or r\n\n local lspace = r > 0 and 100 - self.L or self.L\n self.L = self.L + lspace * r\n return self\nend\n\n---@param r number Saturate ratio [-1, 1]\n---@return HSLuvColor\nfunction Color:saturate(r)\n local lspace = r > 0 and 100 - self.S or self.S\n self.S = self.S + lspace * r\n return self\nend\n\nlocal M = {}\nreturn setmetatable(M, {\n __call = function(_, ...)\n return Color.new(...)\n end,\n})\n"], ["/kanso.nvim/lua/kanso/highlights/lsp.lua", "local M = {}\n---@param colors KansoColors\n---@param config? KansoConfig\nfunction M.setup(colors, config)\n config = config or require(\"kanso\").config\n local theme = colors.theme\n return {\n -- [\"@lsp.type.class\"] = { link = \"Structure\" },\n -- [\"@lsp.type.decorator\"] = { link = \"Function\" },\n -- [\"@lsp.type.enum\"] = { link = \"Structure\" },\n -- [\"@lsp.type.enumMember\"] = { link = \"Constant\" },\n -- [\"@lsp.type.function\"] = { link = \"Function\" },\n -- [\"@lsp.type.interface\"] = { link = \"Structure\" },\n [\"@lsp.type.macro\"] = { link = \"Macro\" },\n [\"@lsp.type.method\"] = { link = \"@function.method\" }, -- Function\n [\"@lsp.type.namespace\"] = { link = \"@module\" }, -- Structure\n [\"@lsp.type.parameter\"] = { link = \"@variable.parameter\" }, -- Identifier\n -- [\"@lsp.type.property\"] = { link = \"Identifier\" },\n -- [\"@lsp.type.struct\"] = { link = \"Structure\" },\n -- [\"@lsp.type.type\"] = { link = \"Type\" },\n -- [\"@lsp.type.typeParameter\"] = { link = \"TypeDef\" },\n [\"@lsp.type.variable\"] = { fg = \"none\" }, -- Identifier\n [\"@lsp.type.comment\"] = { link = \"Comment\" }, -- Comment\n\n [\"@lsp.type.const\"] = { link = \"Constant\" },\n [\"@lsp.type.comparison\"] = { link = \"Operator\" },\n [\"@lsp.type.bitwise\"] = { link = \"Operator\" },\n [\"@lsp.type.punctuation\"] = { link = \"Delimiter\" },\n\n [\"@lsp.type.selfParameter\"] = { link = \"@variable.builtin\" },\n -- [\"@lsp.type.builtinConstant\"] = { link = \"@constant.builtin\" },\n [\"@lsp.type.builtinConstant\"] = { link = \"@constant.builtin\" },\n [\"@lsp.type.magicFunction\"] = { link = \"@function.builtin\" },\n\n [\"@lsp.mod.readonly\"] = { link = \"Constant\" },\n [\"@lsp.mod.typeHint\"] = { link = \"Type\" },\n -- [\"@lsp.mod.defaultLibrary\"] = { link = \"Special\" },\n -- [\"@lsp.mod.builtin\"] = { link = \"Special\" },\n\n [\"@lsp.typemod.operator.controlFlow\"] = { link = \"@keyword.exception\" }, -- rust ? operator\n [\"@lsp.type.lifetime\"] = { link = \"Operator\" },\n [\"@lsp.typemod.keyword.documentation\"] = { link = \"Special\" },\n [\"@lsp.type.decorator.rust\"] = { link = \"PreProc\" },\n\n [\"@lsp.typemod.variable.global\"] = { link = \"Constant\" },\n [\"@lsp.typemod.variable.static\"] = { link = \"Constant\" },\n [\"@lsp.typemod.variable.defaultLibrary\"] = { link = \"Special\" },\n\n [\"@lsp.typemod.function.builtin\"] = { link = \"@function.builtin\" },\n [\"@lsp.typemod.function.defaultLibrary\"] = { link = \"@function.builtin\" },\n [\"@lsp.typemod.method.defaultLibrary\"] = { link = \"@function.builtin\" },\n\n [\"@lsp.typemod.variable.injected\"] = { link = \"@variable\" },\n\n [\"@lsp.typemod.function.readonly\"] = { fg = theme.syn.fun, bold = config.bold },\n }\nend\n\nreturn M\n--vim: fdm=marker\n"], ["/kanso.nvim/lua/lualine/themes/kanso.lua", "local theme = require(\"kanso.colors\").setup().theme\n\nlocal kanso = {}\n\nkanso.normal = {\n a = { bg = theme.ui.fg, fg = theme.ui.bg },\n b = { bg = theme.ui.none, fg = theme.ui.fg },\n c = { bg = theme.ui.none, fg = theme.ui.fg },\n}\n\nkanso.insert = {\n a = { bg = theme.diag.ok, fg = theme.ui.bg },\n b = { bg = theme.ui.none, fg = theme.diag.ok },\n}\n\nkanso.command = {\n a = { bg = theme.syn.operator, fg = theme.ui.bg },\n b = { bg = theme.ui.none, fg = theme.syn.operator },\n}\n\nkanso.visual = {\n a = { bg = theme.syn.keyword, fg = theme.ui.bg },\n b = { bg = theme.ui.none, fg = theme.syn.keyword },\n}\n\nkanso.replace = {\n a = { bg = theme.syn.constant, fg = theme.ui.bg },\n b = { bg = theme.ui.none, fg = theme.syn.constant },\n}\n\nkanso.inactive = {\n a = { bg = theme.ui.none, fg = theme.ui.fg_dim },\n b = { bg = theme.ui.none, fg = theme.ui.fg_dim },\n c = { bg = theme.ui.none, fg = theme.ui.fg_dim },\n}\n\nif vim.g.kanso_lualine_bold then\n for _, mode in pairs(kanso) do\n mode.a.gui = \"bold\"\n end\nend\n\nreturn kanso\n"], ["/kanso.nvim/lua/kanso/lib/hsluv.lua", "--[[\nLua implementation of HSLuv and HPLuv color spaces\nHomepage: http://www.hsluv.org/\n\nCopyright (C) 2019 Alexei Boronine\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and\nassociated documentation files (the \"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the\nfollowing conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial\nportions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT\nLIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\nNO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n]]\n\nlocal hsluv = {}\n\nlocal hexChars = \"0123456789abcdef\"\n\nlocal distance_line_from_origin = function(line)\n return math.abs(line.intercept) / math.sqrt((line.slope ^ 2) + 1)\nend\n\nlocal length_of_ray_until_intersect = function(theta, line)\n return line.intercept / (math.sin(theta) - line.slope * math.cos(theta))\nend\n\nhsluv.get_bounds = function(l)\n local result = {}\n local sub2\n local sub1 = ((l + 16) ^ 3) / 1560896\n if sub1 > hsluv.epsilon then\n sub2 = sub1\n else\n sub2 = l / hsluv.kappa\n end\n\n for i = 1, 3 do\n local m1 = hsluv.m[i][1]\n local m2 = hsluv.m[i][2]\n local m3 = hsluv.m[i][3]\n\n for t = 0, 1 do\n local top1 = (284517 * m1 - 94839 * m3) * sub2\n local top2 = (838422 * m3 + 769860 * m2 + 731718 * m1) * l * sub2 - 769860 * t * l\n local bottom = (632260 * m3 - 126452 * m2) * sub2 + 126452 * t\n table.insert(result, {\n slope = top1 / bottom,\n intercept = top2 / bottom,\n })\n end\n end\n return result\nend\n\nhsluv.max_safe_chroma_for_l = function(l)\n local bounds = hsluv.get_bounds(l)\n local min = 1.7976931348623157e+308\n\n for i = 1, 6 do\n local length = distance_line_from_origin(bounds[i])\n if length >= 0 then\n min = math.min(min, length)\n end\n end\n return min\nend\n\nhsluv.max_safe_chroma_for_lh = function(l, h)\n local hrad = h / 360 * math.pi * 2\n local bounds = hsluv.get_bounds(l)\n local min = 1.7976931348623157e+308\n\n for i = 1, 6 do\n local bound = bounds[i]\n local length = length_of_ray_until_intersect(hrad, bound)\n if length >= 0 then\n min = math.min(min, length)\n end\n end\n return min\nend\n\nhsluv.dot_product = function(a, b)\n local sum = 0\n for i = 1, 3 do\n sum = sum + a[i] * b[i]\n end\n return sum\nend\n\nhsluv.from_linear = function(c)\n if c <= 0.0031308 then\n return 12.92 * c\n else\n return 1.055 * (c ^ 0.416666666666666685) - 0.055\n end\nend\n\nhsluv.to_linear = function(c)\n if c > 0.04045 then\n return ((c + 0.055) / 1.055) ^ 2.4\n else\n return c / 12.92\n end\nend\n\nhsluv.xyz_to_rgb = function(tuple)\n return {\n hsluv.from_linear(hsluv.dot_product(hsluv.m[1], tuple)),\n hsluv.from_linear(hsluv.dot_product(hsluv.m[2], tuple)),\n hsluv.from_linear(hsluv.dot_product(hsluv.m[3], tuple)),\n }\nend\n\nhsluv.rgb_to_xyz = function(tuple)\n local rgbl = {\n hsluv.to_linear(tuple[1]),\n hsluv.to_linear(tuple[2]),\n hsluv.to_linear(tuple[3]),\n }\n return {\n hsluv.dot_product(hsluv.minv[1], rgbl),\n hsluv.dot_product(hsluv.minv[2], rgbl),\n hsluv.dot_product(hsluv.minv[3], rgbl),\n }\nend\n\nhsluv.y_to_l = function(Y)\n if Y <= hsluv.epsilon then\n return Y / hsluv.refY * hsluv.kappa\n else\n return 116 * ((Y / hsluv.refY) ^ 0.333333333333333315) - 16\n end\nend\n\nhsluv.l_to_y = function(L)\n if L <= 8 then\n return hsluv.refY * L / hsluv.kappa\n else\n return hsluv.refY * (((L + 16) / 116) ^ 3)\n end\nend\n\nhsluv.xyz_to_luv = function(tuple)\n local X = tuple[1]\n local Y = tuple[2]\n local divider = X + 15 * Y + 3 * tuple[3]\n local varU = 4 * X\n local varV = 9 * Y\n if divider ~= 0 then\n varU = varU / divider\n varV = varV / divider\n else\n varU = 0\n varV = 0\n end\n local L = hsluv.y_to_l(Y)\n if L == 0 then\n return { 0, 0, 0 }\n end\n return { L, 13 * L * (varU - hsluv.refU), 13 * L * (varV - hsluv.refV) }\nend\n\nhsluv.luv_to_xyz = function(tuple)\n local L = tuple[1]\n local U = tuple[2]\n local V = tuple[3]\n if L == 0 then\n return { 0, 0, 0 }\n end\n local varU = U / (13 * L) + hsluv.refU\n local varV = V / (13 * L) + hsluv.refV\n local Y = hsluv.l_to_y(L)\n local X = 0 - (9 * Y * varU) / (((varU - 4) * varV) - varU * varV)\n return { X, Y, (9 * Y - 15 * varV * Y - varV * X) / (3 * varV) }\nend\n\nhsluv.luv_to_lch = function(tuple)\n local L = tuple[1]\n local U = tuple[2]\n local V = tuple[3]\n local C = math.sqrt(U * U + V * V)\n local H\n if C < 0.00000001 then\n H = 0\n else\n H = math.atan2(V, U) * 180.0 / 3.1415926535897932\n if H < 0 then\n H = 360 + H\n end\n end\n return { L, C, H }\nend\n\nhsluv.lch_to_luv = function(tuple)\n local L = tuple[1]\n local C = tuple[2]\n local Hrad = tuple[3] / 360.0 * 2 * math.pi\n return { L, math.cos(Hrad) * C, math.sin(Hrad) * C }\nend\n\nhsluv.hsluv_to_lch = function(tuple)\n local H = tuple[1]\n local S = tuple[2]\n local L = tuple[3]\n if L > 99.9999999 then\n return { 100, 0, H }\n end\n if L < 0.00000001 then\n return { 0, 0, H }\n end\n return { L, hsluv.max_safe_chroma_for_lh(L, H) / 100 * S, H }\nend\n\nhsluv.lch_to_hsluv = function(tuple)\n local L = tuple[1]\n local C = tuple[2]\n local H = tuple[3]\n local max_chroma = hsluv.max_safe_chroma_for_lh(L, H)\n if L > 99.9999999 then\n return { H, 0, 100 }\n end\n if L < 0.00000001 then\n return { H, 0, 0 }\n end\n\n return { H, C / max_chroma * 100, L }\nend\n\nhsluv.hpluv_to_lch = function(tuple)\n local H = tuple[1]\n local S = tuple[2]\n local L = tuple[3]\n if L > 99.9999999 then\n return { 100, 0, H }\n end\n if L < 0.00000001 then\n return { 0, 0, H }\n end\n return { L, hsluv.max_safe_chroma_for_l(L) / 100 * S, H }\nend\n\nhsluv.lch_to_hpluv = function(tuple)\n local L = tuple[1]\n local C = tuple[2]\n local H = tuple[3]\n if L > 99.9999999 then\n return { H, 0, 100 }\n end\n if L < 0.00000001 then\n return { H, 0, 0 }\n end\n return { H, C / hsluv.max_safe_chroma_for_l(L) * 100, L }\nend\n\nhsluv.rgb_to_hex = function(tuple)\n local h = \"#\"\n for i = 1, 3 do\n local c = math.floor(tuple[i] * 255 + 0.5)\n local digit2 = math.fmod(c, 16)\n local x = (c - digit2) / 16\n local digit1 = math.floor(x)\n h = h .. string.sub(hexChars, digit1 + 1, digit1 + 1)\n h = h .. string.sub(hexChars, digit2 + 1, digit2 + 1)\n end\n return h\nend\n\nhsluv.hex_to_rgb = function(hex)\n hex = string.lower(hex)\n local ret = {}\n for i = 0, 2 do\n local char1 = string.sub(hex, i * 2 + 2, i * 2 + 2)\n local char2 = string.sub(hex, i * 2 + 3, i * 2 + 3)\n local digit1 = string.find(hexChars, char1) - 1\n local digit2 = string.find(hexChars, char2) - 1\n ret[i + 1] = (digit1 * 16 + digit2) / 255.0\n end\n return ret\nend\n\nhsluv.lch_to_rgb = function(tuple)\n return hsluv.xyz_to_rgb(hsluv.luv_to_xyz(hsluv.lch_to_luv(tuple)))\nend\n\nhsluv.rgb_to_lch = function(tuple)\n return hsluv.luv_to_lch(hsluv.xyz_to_luv(hsluv.rgb_to_xyz(tuple)))\nend\n\nhsluv.hsluv_to_rgb = function(tuple)\n return hsluv.lch_to_rgb(hsluv.hsluv_to_lch(tuple))\nend\n\nhsluv.rgb_to_hsluv = function(tuple)\n return hsluv.lch_to_hsluv(hsluv.rgb_to_lch(tuple))\nend\n\nhsluv.hpluv_to_rgb = function(tuple)\n return hsluv.lch_to_rgb(hsluv.hpluv_to_lch(tuple))\nend\n\nhsluv.rgb_to_hpluv = function(tuple)\n return hsluv.lch_to_hpluv(hsluv.rgb_to_lch(tuple))\nend\n\nhsluv.hsluv_to_hex = function(tuple)\n return hsluv.rgb_to_hex(hsluv.hsluv_to_rgb(tuple))\nend\n\nhsluv.hpluv_to_hex = function(tuple)\n return hsluv.rgb_to_hex(hsluv.hpluv_to_rgb(tuple))\nend\n\nhsluv.hex_to_hsluv = function(s)\n return hsluv.rgb_to_hsluv(hsluv.hex_to_rgb(s))\nend\n\nhsluv.hex_to_hpluv = function(s)\n return hsluv.rgb_to_hpluv(hsluv.hex_to_rgb(s))\nend\n\nhsluv.m = {\n { 3.240969941904521, -1.537383177570093, -0.498610760293 },\n { -0.96924363628087, 1.87596750150772, 0.041555057407175 },\n { 0.055630079696993, -0.20397695888897, 1.056971514242878 },\n}\nhsluv.minv = {\n { 0.41239079926595, 0.35758433938387, 0.18048078840183 },\n { 0.21263900587151, 0.71516867876775, 0.072192315360733 },\n { 0.019330818715591, 0.11919477979462, 0.95053215224966 },\n}\nhsluv.refY = 1.0\nhsluv.refU = 0.19783000664283\nhsluv.refV = 0.46831999493879\nhsluv.kappa = 903.2962962\nhsluv.epsilon = 0.0088564516\n\nreturn hsluv\n"], ["/kanso.nvim/lua/kanso/highlights/plugins.lua", "local M = {}\n\n---@param colors KansoColors\n---@param config? KansoConfig\nfunction M.setup(colors, config)\n config = config or require(\"kanso\").config\n local theme = colors.theme\n\n return {\n -- Neovcs\n -- NeovcsBranch = {},\n -- NeovcsRemote = {},\n -- NeovcsDiffDelete = { fg = theme.vcs.removed, bg = theme.diff.delete },\n -- NeovcsDiffAdd = { fg = theme.vcs.added, bg = theme.diff.add },\n -- NeovcsHunkHeader = { fg = theme.syn.identifier },\n -- NeovcsDiffContextHighlight = { bg = theme.diff.change },\n\n -- vcsSigns\n -- vcsSignsAdd = { link = \"diffAdded\" },\n -- vcsSignsChange = { link = \"diffChanged\" },\n -- vcsSignsDelete = { link = \"diffDeleted\" },\n -- vcsSignsDeleteLn = { bg = theme.diff.delete },\n\n -- Gitsigns\n GitSignsAdd = { fg = theme.vcs.added, bg = theme.ui.none },\n GitSignsChange = { fg = theme.vcs.changed, bg = theme.ui.none },\n GitSignsDelete = { fg = theme.vcs.removed, bg = theme.ui.none },\n GitSignsChangedelete = { fg = theme.vcs.removed, bg = theme.ui.none },\n GitSignsTopdelete = { fg = theme.vcs.removed, bg = theme.ui.none },\n GitSignsUntracked = { fg = theme.vcs.untracked, bg = theme.ui.none },\n\n -- Neogit\n NeogitDiffContextHighlight = { bg = theme.diff.change }, --[[ guibg=#333333 guifg=#b2b2b2 ]]\n NeogitHunkHeader = { fg = theme.syn.fun }, --[[ guifg=#cccccc guibg=#404040 ]]\n NeogitHunkHeaderHighlight = { fg = theme.syn.constant, bg = theme.diff.change }, --[[ guifg=#cccccc guibg=#4d4d4d ]]\n NeogitDiffAddHighlight = { bg = theme.diff.add },\n NeogitDiffDeleteHighlight = { bg = theme.diff.delete },\n -- TreeSitter Extensions\n TreesitterContext = { link = \"Folded\" },\n TreesitterContextLineNumber = { fg = theme.ui.special, bg = theme.ui.none },\n -- Telescope\n TelescopeBorder = { fg = theme.ui.float.fg_border, bg = config.transparent and theme.ui.none or theme.ui.bg },\n TelescopeTitle = { fg = theme.ui.special },\n TelescopeSelection = { link = \"CursorLine\" },\n TelescopeSelectionCaret = { link = \"CursorLineNr\" },\n TelescopeResultsClass = { link = \"Structure\" },\n TelescopeResultsStruct = { link = \"Structure\" },\n TelescopeResultsField = { link = \"@field\" },\n TelescopeResultsMethod = { link = \"Function\" },\n TelescopeResultsVariable = { link = \"@variable\" },\n -- NvimTree\n NvimTreeNormal = { link = \"Normal\" },\n NvimTreeNormalNC = { link = \"NvimTreeNormal\" },\n NvimTreeRootFolder = { fg = theme.syn.identifier, bold = config.bold },\n NvimTreeGitDirty = { fg = theme.vcs.changed },\n NvimTreeGitNew = { fg = theme.vcs.added },\n NvimTreeGitDeleted = { fg = theme.vcs.removed },\n NvimTreeGitStaged = { fg = theme.vcs.added },\n NvimTreeSpecialFile = { fg = theme.syn.special1 },\n -- NvimTreeIndentMarker = {},\n NvimTreeImageFile = { fg = theme.syn.special2 },\n NvimTreeSymlink = { link = \"Type\" },\n NvimTreeFolderName = { link = \"Directory\" },\n NvimTreeExecFile = { fg = theme.syn.string, bold = config.bold },\n NvimTreeOpenedFile = { fg = theme.syn.special1, italic = config.italics },\n NvimTreeWinSeparator = { link = \"WinSeparator\" },\n NvimTreeWindowPicker = {\n bg = config.transparent and theme.ui.none or theme.ui.bg_m1,\n fg = theme.syn.special1,\n bold = config.bold,\n },\n -- NeoTree\n NeoTreeTabInactive = { fg = theme.ui.special, bg = config.transparent and theme.ui.none or theme.ui.bg },\n NeoTreeTabActive = {\n fg = theme.ui.fg_dim,\n bg = config.transparent and theme.ui.none or theme.ui.bg_p1,\n bold = config.bold,\n },\n NeoTreeTabSeparatorInactive = {\n fg = theme.ui.special,\n bg = config.transparent and theme.ui.none or theme.ui.bg,\n },\n NeoTreeTabSeparatorActive = {\n fg = theme.ui.fg_dim,\n bg = config.transparent and theme.ui.none or theme.ui.bg_p1,\n },\n NeoTreeRootName = { fg = theme.syn.identifier, bold = config.bold },\n NeoTreeModified = { link = \"String\" },\n NeoTreeNormal = { link = \"Normal\" },\n NeoTreeNormalNC = { link = \"Normal\" },\n NeoTreeTitleBar = { link = \"Title\" },\n NeoTreeDimText = { fg = theme.ui.fg_dim },\n NeoTreeGitModified = { fg = theme.vcs.changed },\n NeoTreeGitAdded = { fg = theme.vcs.added },\n NeoTreeGitDeleted = { fg = theme.vcs.removed },\n NeoTreeGitStaged = { fg = theme.vcs.added },\n NeoTreeGitConflict = { fg = theme.diag.error },\n NeoTreeGitUntracked = { link = \"NeoTreeGitModified\", default = true },\n NeoTreeGitUnstaged = { link = \"NeoTreeGitModified\", default = true },\n NeoTreeIndentMarker = { link = \"NonText\" },\n -- WindowPicker\n -- NvimWindowSwitch = { bg = theme.ui.bg_m3, fg = theme.diag.warning },\n -- NvimWindowSwitchNC = { link = \"NvimWindowSwitch\" },\n -- Dashboard\n DashboardShortCut = { fg = theme.syn.special1 },\n DashboardHeader = { fg = theme.vcs.removed },\n DashboardCenter = { fg = theme.syn.identifier },\n DashboardFooter = { fg = theme.syn.comment },\n DashboardDesc = { fg = theme.syn.identifier },\n DashboardKey = { fg = theme.syn.special1 },\n DashboardIcon = { fg = theme.ui.special },\n -- Notify\n NotifyBackground = { bg = config.transparent and theme.ui.none or theme.ui.bg },\n NotifyERRORBorder = { link = \"DiagnosticError\" },\n NotifyWARNBorder = { link = \"DiagnosticWarn\" },\n NotifyINFOBorder = { link = \"DiagnosticInfo\" },\n NotifyHINTBorder = { link = \"DiagnosticHint\" },\n NotifyDEBUGBorder = { link = \"Debug\" },\n NotifyTRACEBorder = { link = \"Comment\" },\n NotifyERRORIcon = { link = \"DiagnosticError\" },\n NotifyWARNIcon = { link = \"DiagnosticWarn\" },\n NotifyINFOIcon = { link = \"DiagnosticInfo\" },\n NotifyHINTIcon = { link = \"DiagnosticHint\" },\n NotifyDEBUGIcon = { link = \"Debug\" },\n NotifyTRACEIcon = { link = \"Comment\" },\n NotifyERRORTitle = { link = \"DiagnosticError\" },\n NotifyWARNTitle = { link = \"DiagnosticWarn\" },\n NotifyINFOTitle = { link = \"DiagnosticInfo\" },\n NotifyHINTTitle = { link = \"DiagnosticHint\" },\n NotifyDEBUGTitle = { link = \"Debug\" },\n NotifyTRACETitle = { link = \"Comment\" },\n -- Dap-UI\n -- DapUIVariable = { link = \"Normal\" },\n DapUIScope = { link = \"Special\" }, -- guifg=#00F1F5\"\n DapUIType = { link = \"Type\" }, -- guifg=#D484FF\"\n -- DapUIValue = { link = \"Normal\" },\n DapUIModifiedValue = { fg = theme.syn.special1, bold = config.bold }, -- guifg=#00F1F5 gui=bold\"\n DapUIDecoration = { fg = theme.ui.float.fg_border }, -- guifg=#00F1F5\"\n DapUIThread = { fg = theme.syn.identifier }, --guifg=#A9FF68\"\n DapUIStoppedThread = { fg = theme.syn.special1 }, --guifg=#00f1f5\"\n -- DapUIFrameName = { link = \"Normal\"},\n DapUISource = { fg = theme.syn.special2 }, -- guifg=#D484FF\"\n DapUILineNumber = { fg = theme.syn.special1 }, -- guifg=#00f1f5\"\n DapUIFloatBorder = { fg = theme.ui.float.fg_border }, -- guifg=#00F1F5\"\n DapUIWatchesEmpty = { fg = theme.diag.error }, -- guifg=#F70067\"\n DapUIWatchesValue = { fg = theme.syn.identifier }, -- guifg=#A9FF68\"\n DapUIWatchesError = { fg = theme.diag.error }, --guifg=#F70067\"\n DapUIBreakpointsPath = { link = \"Directory\" }, --guifg=#00F1F5\"\n DapUIBreakpointsInfo = { fg = theme.diag.info }, --guifg=#A9FF68\"\n DapUIBreakpointsCurrentLine = { fg = theme.syn.identifier, bold = config.bold }, --guifg=#A9FF68 gui=bold\"\n -- DapUIBreakpointsLine = {}, -- DapUILineNumber\"\n DapUIBreakpointsDisabledLine = { link = \"Comment\" }, --guifg=#424242\"\n -- DapUICurrentFrameName = {}, -- DapUIBreakpointsCurrentLine\"\n DapUIStepOver = { fg = theme.syn.special1 }, --guifg=#00f1f5\"\n DapUIStepInto = { fg = theme.syn.special1 }, --guifg=#00f1f5\"\n DapUIStepBack = { fg = theme.syn.special1 }, --guifg=#00f1f5\"\n DapUIStepOut = { fg = theme.syn.special1 }, --guifg=#00f1f5\"\n DapUIStop = { fg = theme.diag.error }, --guifg=#F70067\"\n DapUIPlayPause = { fg = theme.syn.string }, --guifg=#A9FF68\"\n DapUIRestart = { fg = theme.syn.string }, --guifg=#A9FF68\"\n DapUIUnavailable = { fg = theme.syn.comment }, --guifg=#424242\"\n -- Floaterm\n FloatermBorder = { fg = theme.ui.float.fg_border, bg = config.transparent and theme.ui.none or theme.ui.bg },\n -- NeoVim = {},\n healthError = { fg = theme.diag.error },\n healthSuccess = { fg = theme.diag.ok },\n healthWarning = { fg = theme.diag.warning },\n -- Cmp\n CmpDocumentation = { link = \"NormalFloat\" },\n CmpDocumentationBorder = { link = \"FloatBorder\" },\n CmpCompletion = { link = \"Pmenu\" },\n CmpCompletionSel = { link = \"PmenuSel\" },\n CmpCompletionBorder = { fg = theme.ui.bg_search, bg = theme.ui.pmenu.bg },\n CmpCompletionThumb = { link = \"PmenuThumb\" },\n CmpCompletionSbar = { link = \"PmenuSbar\" },\n CmpItemAbbr = { fg = theme.ui.pmenu.fg },\n CmpItemAbbrDeprecated = { fg = theme.syn.comment, strikethrough = true },\n CmpItemAbbrMatch = { fg = theme.syn.fun },\n CmpItemAbbrMatchFuzzy = { link = \"CmpItemAbbrMatch\" },\n CmpItemKindDefault = { fg = theme.ui.fg_dim },\n CmpItemMenu = { fg = theme.ui.fg_dim },\n CmpGhostText = { fg = theme.syn.comment },\n\n CmpItemKindText = { fg = theme.ui.fg },\n CmpItemKindMethod = { link = \"@function.method\" },\n CmpItemKindFunction = { link = \"Function\" },\n CmpItemKindConstructor = { link = \"@constructor\" },\n CmpItemKindField = { link = \"@variable.member\" },\n CmpItemKindVariable = { fg = theme.ui.fg_dim },\n CmpItemKindClass = { link = \"Type\" },\n CmpItemKindInterface = { link = \"Type\" },\n CmpItemKindModule = { link = \"@module\" },\n CmpItemKindProperty = { link = \"@property\" },\n CmpItemKindUnit = { link = \"Number\" },\n CmpItemKindValue = { link = \"String\" },\n CmpItemKindEnum = { link = \"Type\" },\n CmpItemKindKeyword = { link = \"Keyword\" },\n CmpItemKindSnippet = { link = \"Special\" },\n CmpItemKindColor = { link = \"Special\" },\n CmpItemKindFile = { link = \"Directory\" },\n CmpItemKindReference = { link = \"Special\" },\n CmpItemKindFolder = { link = \"Directory\" },\n CmpItemKindEnumMember = { link = \"Constant\" },\n CmpItemKindConstant = { link = \"Constant\" },\n CmpItemKindStruct = { link = \"Type\" },\n CmpItemKindEvent = { link = \"Type\" },\n CmpItemKindOperator = { link = \"Operator\" },\n CmpItemKindTypeParameter = { link = \"Type\" },\n CmpItemKindCopilot = { link = \"String\" },\n\n -- blink.cmp\n BlinkCmpMenu = { link = \"Pmenu\" },\n BlinkCmpMenuSelection = { link = \"PmenuSel\" },\n BlinkCmpMenuBorder = { fg = theme.ui.bg_search, bg = theme.ui.pmenu.bg },\n BlinkCmpScrollBarThumb = { link = \"PmenuThumb\" },\n BlinkCmpScrollBarGutter = { link = \"PmenuSbar\" },\n BlinkCmpLabel = { fg = theme.ui.pmenu.fg },\n BlinkCmpLabelMatch = { fg = theme.syn.fun },\n BlinkCmpLabelDetails = { fg = theme.syn.comment },\n BlinkCmpLabelDeprecated = { fg = theme.syn.comment, strikethrough = true },\n BlinkCmpGhostText = { fg = theme.syn.comment },\n BlinkCmpDoc = { link = \"NormalFloat\" },\n BlinkCmpDocBorder = { link = \"FloatBorder\" },\n BlinkCmpDocCursorLine = { link = \"Visual\" },\n BlinkCmpSignatureHelp = { link = \"NormalFloat\" },\n BlinkCmpSignatureHelpBorder = { link = \"FloatBorder\" },\n BlinkCmpSignatureHelpActiveParameter = { link = \"LspSignatureActiveParameter\" },\n\n BlinkCmpKind = { fg = theme.ui.fg_dim },\n BlinkCmpKindText = { fg = theme.ui.fg },\n BlinkCmpKindMethod = { link = \"@function.method\" },\n BlinkCmpKindFunction = { link = \"Function\" },\n BlinkCmpKindConstructor = { link = \"@constructor\" },\n BlinkCmpKindField = { link = \"@variable.member\" },\n BlinkCmpKindVariable = { fg = theme.ui.fg_dim },\n BlinkCmpKindClass = { link = \"Type\" },\n BlinkCmpKindInterface = { link = \"Type\" },\n BlinkCmpKindModule = { link = \"@module\" },\n BlinkCmpKindProperty = { link = \"@property\" },\n BlinkCmpKindUnit = { link = \"Number\" },\n BlinkCmpKindValue = { link = \"String\" },\n BlinkCmpKindEnum = { link = \"Type\" },\n BlinkCmpKindKeyword = { link = \"Keyword\" },\n BlinkCmpKindSnippet = { link = \"Special\" },\n BlinkCmpKindColor = { link = \"Special\" },\n BlinkCmpKindFile = { link = \"Directory\" },\n BlinkCmpKindReference = { link = \"Special\" },\n BlinkCmpKindFolder = { link = \"Directory\" },\n BlinkCmpKindEnumMember = { link = \"Constant\" },\n BlinkCmpKindConstant = { link = \"Constant\" },\n BlinkCmpKindStruct = { link = \"Type\" },\n BlinkCmpKindEvent = { link = \"Type\" },\n BlinkCmpKindOperator = { link = \"Operator\" },\n BlinkCmpKindTypeParameter = { link = \"Type\" },\n BlinkCmpKindCopilot = { link = \"String\" },\n\n -- IndentBlankline\n IndentBlanklineChar = { fg = theme.ui.indent_line, nocombine = true },\n IndentBlanklineSpaceChar = { fg = theme.ui.indent_line, nocombine = true },\n IndentBlanklineSpaceCharBlankline = { fg = theme.ui.indent_line, nocombine = true },\n IndentBlanklineContextChar = { fg = theme.ui.active_indent_line, nocombine = true },\n IndentBlanklineContextStart = { sp = theme.ui.active_indent_line, underline = true, nocombine = true },\n IblIndent = { fg = theme.ui.indent_line, nocombine = true },\n IblWhitespace = { fg = theme.ui.indent_line, nocombine = true },\n IblScope = { fg = theme.ui.active_indent_line, nocombine = true },\n -- Other indent plugins\n IndentLine = { fg = theme.ui.indent_line, nocombine = true },\n Indent = { fg = theme.ui.indent_line, nocombine = true },\n IndentGuide = { fg = theme.ui.indent_line, nocombine = true },\n IndentGuidesOdd = { fg = theme.ui.indent_line, nocombine = true },\n IndentGuidesEven = { fg = theme.ui.indent_line, nocombine = true },\n -- Lazy\n LazyProgressTodo = { fg = theme.ui.nontext },\n\n -- Trouble\n TroubleIndent = { fg = theme.ui.whitespace },\n TroublePos = { fg = theme.ui.special },\n\n -- Nvim-Navic\n NavicIconsFile = { link = \"Directory\" },\n NavicIconsModule = { link = \"@module\" },\n NavicIconsNamespace = { link = \"@module\" },\n NavicIconsPackage = { link = \"@module\" },\n NavicIconsClass = { link = \"Type\" },\n NavicIconsMethod = { link = \"@function.method\" },\n NavicIconsProperty = { link = \"@property\" },\n NavicIconsField = { link = \"@variable.member\" },\n NavicIconsConstructor = { link = \"@constructor\" },\n NavicIconsEnum = { link = \"Type\" },\n NavicIconsInterface = { link = \"Type\" },\n NavicIconsFunction = { link = \"Function\" },\n NavicIconsVariable = { link = \"@variable\" },\n NavicIconsConstant = { link = \"Constant\" },\n NavicIconsString = { link = \"String\" },\n NavicIconsNumber = { link = \"Number\" },\n NavicIconsBoolean = { link = \"Boolean\" },\n NavicIconsArray = { link = \"Type\" },\n NavicIconsObject = { link = \"Type\" },\n NavicIconsKey = { link = \"Identifier\" },\n NavicIconsNull = { link = \"Type\" },\n NavicIconsEnumMember = { link = \"Constant\" },\n NavicIconsStruct = { link = \"Structure\" },\n NavicIconsEvent = { link = \"Structure\" },\n NavicIconsOperator = { link = \"Operator\" },\n NavicIconsTypeParameter = { link = \"Type\" },\n NavicText = { fg = theme.ui.fg },\n NavicSeparator = { fg = theme.ui.fg },\n\n -- Aerial icons\n AerialFileIcon = { link = \"Directory\" },\n AerialModuleIcon = { link = \"@module\" },\n AerialNamespaceIcon = { link = \"@module\" },\n AerialPackageIcon = { link = \"@module\" },\n AerialClassIcon = { link = \"Type\" },\n AerialMethodIcon = { link = \"@function.method\" },\n AerialPropertyIcon = { link = \"@property\" },\n AerialFieldIcon = { link = \"@variable.member\" },\n AerialConstructorIcon = { link = \"@constructor\" },\n AerialEnumIcon = { link = \"Type\" },\n AerialInterfaceIcon = { link = \"Type\" },\n AerialFunctionIcon = { link = \"Function\" },\n AerialVariableIcon = { link = \"@variable\" },\n AerialConstantIcon = { link = \"Constant\" },\n AerialStringIcon = { link = \"String\" },\n AerialNumberIcon = { link = \"Number\" },\n AerialBooleanIcon = { link = \"Boolean\" },\n AerialArrayIcon = { link = \"Type\" },\n AerialObjectIcon = { link = \"Type\" },\n AerialKeyIcon = { link = \"Identifier\" },\n AerialNullIcon = { link = \"Type\" },\n AerialEnumMemberIcon = { link = \"Constant\" },\n AerialStructIcon = { link = \"Structure\" },\n AerialEventIcon = { link = \"Structure\" },\n AerialOperatorIcon = { link = \"Operator\" },\n AerialTypeParameterIcon = { link = \"Type\" },\n\n -- Mini\n MiniAnimateCursor = { reverse = true, nocombine = true },\n MiniAnimateNormalFloat = { link = \"NormalFloat\" },\n\n MiniClueBorder = { link = \"FloatBorder\" },\n MiniClueDescGroup = { link = \"DiagnosticFloatingWarn\" },\n MiniClueDescSingle = { link = \"NormalFloat\" },\n MiniClueNextKey = { link = \"DiagnosticFloatingHint\" },\n MiniClueNextKeyWithPostkeys = { link = \"DiagnosticFloatingError\" },\n MiniClueSeparator = { link = \"DiagnosticFloatingInfo\" },\n MiniClueTitle = { link = \"FloatTitle\" },\n\n MiniCompletionActiveParameter = { underline = true },\n\n MiniCursorword = { underline = true },\n MiniCursorwordCurrent = { underline = true },\n\n MiniDepsChangeAdded = { link = \"diffAdded\" },\n MiniDepsChangeRemoved = { link = \"diffRemoved\" },\n MiniDepsHint = { fg = theme.diag.hint },\n MiniDepsInfo = { fg = theme.diag.info },\n MiniDepsMsgBreaking = { fg = theme.diag.warning },\n MiniDepsPlaceholder = { link = \"Comment\" },\n MiniDepsTitle = { link = \"Title\" },\n MiniDepsTitleError = { link = \"DiffDelete\" },\n MiniDepsTitleSame = { link = \"DiffText\" },\n MiniDepsTitleUpdate = { link = \"DiffAdd\" },\n\n MiniDiffSignAdd = { fg = theme.vcs.added, bg = theme.ui.none },\n MiniDiffSignChange = { fg = theme.vcs.changed, bg = theme.ui.none },\n MiniDiffSignDelete = { fg = theme.vcs.removed, bg = theme.ui.none },\n MiniDiffOverAdd = { link = \"DiffAdd\" },\n MiniDiffOverChange = { link = \"DiffText\" },\n MiniDiffOverContext = { link = \"DiffChange\" },\n MiniDiffOverDelete = { link = \"DiffDelete\" },\n\n MiniFilesBorder = { link = \"FloatBorder\" },\n MiniFilesBorderModified = { link = \"DiagnosticFloatingWarn\" },\n MiniFilesCursorLine = { link = \"CursorLine\" },\n MiniFilesDirectory = { link = \"Directory\" },\n MiniFilesFile = { fg = theme.ui.fg },\n MiniFilesNormal = { link = \"NormalFloat\" },\n MiniFilesTitle = {\n fg = theme.ui.special,\n bg = config.transparent and theme.ui.none or theme.ui.float.bg_border,\n bold = config.bold,\n },\n MiniFilesTitleFocused = {\n fg = theme.ui.fg,\n bg = config.transparent and theme.ui.none or theme.ui.float.bg_border,\n bold = config.bold,\n },\n\n MiniHipatternsFixme = { fg = theme.ui.bg, bg = theme.diag.error, bold = config.bold },\n MiniHipatternsHack = { fg = theme.ui.bg, bg = theme.diag.warning, bold = config.bold },\n MiniHipatternsNote = { fg = theme.ui.bg, bg = theme.diag.info, bold = config.bold },\n MiniHipatternsTodo = { fg = theme.ui.bg, bg = theme.diag.hint, bold = config.bold },\n\n MiniIconsAzure = { fg = theme.syn.special1 },\n MiniIconsBlue = { fg = theme.syn.fun },\n MiniIconsCyan = { fg = theme.syn.type },\n MiniIconsGreen = { fg = theme.syn.string },\n MiniIconsGrey = { fg = theme.ui.fg },\n MiniIconsOrange = { fg = theme.syn.constant },\n MiniIconsPurple = { fg = theme.syn.keyword },\n MiniIconsRed = { fg = theme.syn.special3 },\n MiniIconsYellow = { fg = theme.syn.identifier },\n\n MiniIndentscopeSymbol = { fg = theme.syn.special1 },\n MiniIndentscopePrefix = { nocombine = true }, -- Make it invisible\n\n MiniJump = { link = \"SpellRare\" },\n\n MiniJump2dDim = { link = \"Comment\" },\n MiniJump2dSpot = { fg = theme.syn.constant, bold = config.bold, nocombine = true },\n MiniJump2dSpotAhead = { fg = theme.diag.hint, bg = theme.ui.bg_dim, nocombine = true },\n MiniJump2dSpotUnique = { fg = theme.syn.special1, bold = config.bold, nocombine = true },\n\n MiniMapNormal = { link = \"NormalFloat\" },\n MiniMapSymbolCount = { link = \"Special\" },\n MiniMapSymbolLine = { link = \"Title\" },\n MiniMapSymbolView = { link = \"Delimiter\" },\n\n MiniNotifyBorder = { link = \"FloatBorder\" },\n MiniNotifyNormal = { link = \"NormalFloat\" },\n MiniNotifyTitle = { link = \"FloatTitle\" },\n\n MiniOperatorsExchangeFrom = { link = \"IncSearch\" },\n\n MiniPickBorder = { link = \"FloatBorder\" },\n MiniPickBorderBusy = { link = \"DiagnosticFloatingWarn\" },\n MiniPickBorderText = { link = \"FloatTitle\" },\n MiniPickIconDirectory = { link = \"Directory\" },\n MiniPickIconFile = { link = \"MiniPickNormal\" },\n MiniPickHeader = { link = \"DiagnosticFloatingHint\" },\n MiniPickMatchCurrent = { link = \"CursorLine\" },\n MiniPickMatchMarked = { link = \"Visual\" },\n MiniPickMatchRanges = { link = \"DiagnosticFloatingHint\" },\n MiniPickNormal = { link = \"NormalFloat\" },\n MiniPickPreviewLine = { link = \"CursorLine\" },\n MiniPickPreviewRegion = { link = \"IncSearch\" },\n MiniPickPrompt = { fg = theme.syn.fun, bg = config.transparent and theme.ui.none or theme.ui.float.bg_border },\n\n MiniStarterCurrent = { nocombine = true },\n MiniStarterFooter = { fg = theme.syn.deprecated },\n MiniStarterHeader = { link = \"Title\" },\n MiniStarterInactive = { link = \"Comment\" },\n MiniStarterItem = { link = \"Normal\" },\n MiniStarterItemBullet = { link = \"Delimiter\" },\n MiniStarterItemPrefix = { fg = theme.diag.warning },\n MiniStarterSection = { fg = theme.diag.ok },\n MiniStarterQuery = { fg = theme.diag.info },\n\n MiniStatuslineDevinfo = { fg = theme.ui.fg_dim, bg = config.transparent and theme.ui.none or theme.ui.bg_p1 },\n MiniStatuslineFileinfo = { fg = theme.ui.fg_dim, bg = config.transparent and theme.ui.none or theme.ui.bg_p1 },\n MiniStatuslineFilename = { fg = theme.ui.fg_dim, bg = config.transparent and theme.ui.none or theme.ui.bg_dim },\n MiniStatuslineInactive = { link = \"StatusLineNC\" },\n MiniStatuslineModeCommand = { fg = theme.ui.bg, bg = theme.syn.operator, bold = config.bold },\n MiniStatuslineModeInsert = { fg = theme.ui.bg, bg = theme.diag.ok, bold = config.bold },\n MiniStatuslineModeNormal = { fg = theme.ui.bg_m3, bg = theme.syn.fun, bold = config.bold },\n MiniStatuslineModeOther = { fg = theme.ui.bg, bg = theme.syn.type, bold = config.bold },\n MiniStatuslineModeReplace = { fg = theme.ui.bg, bg = theme.syn.constant, bold = config.bold },\n MiniStatuslineModeVisual = { fg = theme.ui.bg, bg = theme.syn.keyword, bold = config.bold },\n\n MiniSurround = { link = \"IncSearch\" },\n\n MiniTablineCurrent = {\n fg = theme.ui.fg_dim,\n bg = config.transparent and theme.ui.none or theme.ui.bg_p1,\n bold = config.bold,\n },\n MiniTablineFill = { link = \"TabLineFill\" },\n MiniTablineHidden = { fg = theme.ui.special, bg = theme.ui.bg_m3 },\n MiniTablineModifiedCurrent = { fg = theme.ui.bg_p1, bg = theme.ui.fg_dim, bold = config.bold },\n MiniTablineModifiedHidden = { fg = theme.ui.bg_m3, bg = theme.ui.special },\n MiniTablineModifiedVisible = { fg = theme.ui.bg_m3, bg = theme.ui.special, bold = config.bold },\n MiniTablineTabpagesection = { fg = theme.ui.fg, bg = theme.ui.bg_search, bold = config.bold },\n MiniTablineVisible = { fg = theme.ui.special, bg = theme.ui.bg_m3, bold = config.bold },\n\n MiniTestEmphasis = { bold = config.bold },\n MiniTestFail = { fg = theme.diag.error, bold = config.bold },\n MiniTestPass = { fg = theme.diag.ok, bold = config.bold },\n\n MiniTrailspace = { bg = theme.vcs.removed },\n\n NeotestAdapterName = { fg = theme.syn.special3 },\n NeotestDir = { fg = theme.syn.fun },\n NeotestExpandMarker = { fg = theme.syn.punct, bold = config.bold },\n NeotestFailed = { fg = theme.diag.error },\n NeotestFile = { fg = theme.syn.fun },\n NeotestFocused = { bold = config.bold, underline = true },\n NeotestIndent = { fg = theme.ui.special, bold = config.bold },\n NeotestMarked = { fg = theme.diag.warning, italic = config.italics },\n NeotestNamespace = { fg = theme.syn.fun },\n NeotestPassed = { fg = theme.diag.ok },\n NeotestRunning = { fg = theme.vcs.changed },\n NeotestWinSelect = { fg = theme.diag.hint },\n NeotestSkipped = { fg = theme.syn.special1 },\n NeotestTarget = { fg = theme.syn.special3 },\n NeotestTest = { fg = theme.ui.float.fg },\n NeotestUnknown = { fg = theme.syn.deprecated },\n NeotestWatching = { fg = theme.vcs.changed },\n\n SnacksPicker = { bg = config.transparent and theme.ui.none or theme.ui.bg },\n SnacksPickerTitle = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },\n SnacksPickerBorder = { fg = theme.ui.none, bg = theme.ui.none },\n SnacksPickerNormal = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },\n SnacksPickerMatch = { fg = theme.ui.fg },\n SnacksPickerCursor = { fg = theme.ui.bg, bg = theme.ui.bg },\n SnacksPickerPrompt = { fg = theme.ui.fg },\n SnacksPickerDim = { fg = theme.ui.fg_dim },\n SnacksInputIcon = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },\n SnacksIndent = { fg = theme.ui.indent_line, nocombine = true },\n SnacksIndentChunk = { fg = theme.ui.active_indent_line, nocombine = true },\n SnacksIndentScope = { fg = theme.ui.active_indent_line, nocombine = true },\n SnacksPickerListCursorLine = { fg = theme.ui.fg, bg = theme.ui.bg_p2 },\n SnacksPickerInputBorder = { fg = theme.ui.none, bg = theme.ui.none },\n SnacksPickerInputTitle = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },\n SnacksPickerBoxTitle = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },\n SnacksPickerSelected = { fg = theme.ui.bg },\n SnacksPickerPickWinCurrent = {\n fg = theme.ui.fg,\n bg = config.transparent and theme.ui.none or theme.ui.bg,\n bold = config.bold,\n },\n SnacksPickerPickWin = {\n fg = theme.ui.fg,\n bg = config.transparent and theme.ui.none or theme.ui.bg_search,\n bold = config.bold,\n },\n\n BufferLineBackground = { fg = theme.ui.none, bg = theme.ui.none },\n BufferLineBuffer = { fg = theme.ui.none, bg = theme.ui.none },\n BufferLineBufferSelected = { bg = theme.ui.none, fg = theme.ui.fg },\n BufferLineBufferVisible = { bg = theme.ui.none },\n BufferLineCloseButton = { bg = theme.ui.none },\n BufferLineCloseButtonSelected = { bg = theme.ui.none },\n BufferLineCloseButtonVisible = { bg = theme.ui.none },\n BufferLineDuplicate = { bg = theme.ui.none },\n BufferLineDuplicateSelected = { bg = theme.ui.none },\n BufferLineDuplicateVisible = { bg = theme.ui.none },\n BufferLineError = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineErrorDiagnostic = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineErrorDiagnosticSelected = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineErrorDiagnosticVisible = { bg = theme.ui.none },\n BufferLineErrorSelected = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineErrorVisible = { bg = theme.ui.none },\n BufferLineFill = { bg = theme.ui.none },\n BufferLineHint = { sp = theme.ui.none, bg = theme.ui.none },\n BufferLineHintDiagnostic = { sp = theme.ui.none, bg = theme.ui.none },\n BufferLineHintDiagnosticSelected = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineHintDiagnosticVisible = { bg = theme.ui.none },\n BufferLineHintSelected = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineHintVisible = { bg = theme.ui.none },\n BufferLineInfo = { sp = theme.ui.none, bg = theme.ui.none },\n BufferLineInfoDiagnostic = { sp = theme.ui.none, bg = theme.ui.none },\n BufferLineInfoDiagnosticSelected = { sp = theme.ui.none, bg = theme.ui.none },\n BufferLineInfoDiagnosticVisible = { bg = theme.ui.none },\n BufferLineInfoSelected = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineInfoVisible = { bg = theme.ui.none },\n BufferLineIndicatorSelected = { bg = theme.ui.none },\n BufferLineModified = { bg = theme.ui.none },\n BufferLineModifiedSelected = { bg = theme.ui.none },\n BufferLineModifiedVisible = { bg = theme.ui.none },\n BufferLineNumbers = { bg = theme.ui.none },\n BufferLineNumbersSelected = { bg = theme.ui.none },\n BufferLineNumbersVisible = { bg = theme.ui.none },\n BufferLineOffsetSeparator = { bg = theme.ui.none },\n BufferLineSeparator = { bg = theme.ui.none },\n BufferLineSeparatorSelected = { bg = theme.ui.none },\n BufferLineSeparatorVisible = { bg = theme.ui.none },\n BufferLineTab = { bg = theme.ui.none },\n BufferLinePick = { bg = theme.ui.none },\n BufferLinePickSelected = { bg = theme.ui.none },\n BufferLineDevIconLua = { bg = theme.ui.none },\n BufferLineDevIconLuaSelected = { bg = theme.ui.none },\n BufferLineDevIconLuaVisible = { bg = theme.ui.none },\n BufferLineDevIconLuaInactive = { bg = theme.ui.none },\n BufferLinePickVisible = { bg = theme.ui.none },\n BufferLineIndicatorVisible = { bg = theme.ui.none },\n BufferLineTabClose = { bg = theme.ui.none },\n BufferLineTabSelected = { bg = theme.ui.none },\n BufferLineTabSeparator = { bg = theme.ui.none },\n BufferLineTabSeparatorSelected = { bg = theme.ui.none },\n BufferLineTruncMarker = { bg = theme.ui.none },\n BufferLineWarning = { bg = theme.ui.none },\n BufferLineWarningDiagnostic = { bg = theme.ui.none },\n BufferLineWarningDiagnosticSelected = { bg = theme.ui.none },\n BufferLineWarningDiagnosticVisible = { bg = theme.ui.none },\n BufferLineWarningSelected = { bg = theme.ui.none },\n BufferLineWarningVisible = { bg = theme.ui.none },\n }\nend\n\nreturn M\n"], ["/kanso.nvim/extras/wezterm/kanso-pearl.lua", "-- Kanso Pearl\nlocal config = {\n force_reverse_video_cursor = true,\n colors = {\n foreground = \"#22262D\",\n background = \"#F2F1EF\",\n\n cursor_bg = \"#22262D\",\n cursor_fg = \"#F2F1EF\",\n cursor_border = \"#C5C9C7\",\n\n selection_fg = \"#22262D\",\n selection_bg = \"#E2E1DF\",\n\n scrollbar_thumb = \"#43464E\",\n split = \"#43464E\",\n\n ansi = {\n \"#22262D\",\n \"#c84053\",\n \"#6f894e\",\n \"#77713f\",\n \"#4d699b\",\n \"#b35b79\",\n \"#597b75\",\n \"#545464\",\n },\n brights = {\n \"#6d6f6e\",\n \"#d7474b\",\n \"#6e915f\",\n \"#836f4a\",\n \"#6693bf\",\n \"#624c83\",\n \"#5e857a\",\n \"#43436c\",\n },\n },\n}\n\nreturn config\n"], ["/kanso.nvim/extras/wezterm/kanso-mist.lua", "-- Kanso Mist WezTerm Colors\nlocal config = {\n force_reverse_video_cursor = true,\n colors = {\n foreground = \"#C5C9C7\",\n background = \"#22262D\",\n\n cursor_bg = \"#C5C9C7\",\n cursor_fg = \"#22262D\",\n cursor_border = \"#C5C9C7\",\n\n selection_fg = \"#C5C9C7\",\n selection_bg = \"#43464E\",\n\n scrollbar_thumb = \"#43464E\",\n split = \"#43464E\",\n\n ansi = {\n \"#22262D\",\n \"#C4746E\",\n \"#8A9A7B\",\n \"#C4B28A\",\n \"#8BA4B0\",\n \"#A292A3\",\n \"#8EA4A2\",\n \"#a4a7a4\",\n },\n brights = {\n \"#5C6066\",\n \"#E46876\",\n \"#87A987\",\n \"#E6C384\",\n \"#7FB4CA\",\n \"#938AA9\",\n \"#7AA89F\",\n \"#C5C9C7\",\n },\n },\n}\n\nreturn config\n"], ["/kanso.nvim/extras/wezterm/kanso-ink.lua", "local config = {\n force_reverse_video_cursor = true,\n colors = {\n foreground = \"#C5C9C7\",\n background = \"#14171d\",\n\n cursor_bg = \"#C5C9C7\",\n cursor_fg = \"#14171d\",\n cursor_border = \"#C5C9C7\",\n\n selection_fg = \"#C5C9C7\",\n selection_bg = \"#393B44\",\n\n scrollbar_thumb = \"#393B44\",\n split = \"#393B44\",\n\n ansi = {\n \"#14171d\",\n \"#C4746E\",\n \"#8A9A7B\",\n \"#C4B28A\",\n \"#8BA4B0\",\n \"#A292A3\",\n \"#8EA4A2\",\n \"#A4A7A4\",\n },\n brights = {\n \"#A4A7A4\",\n \"#E46876\",\n \"#87A987\",\n \"#E6C384\",\n \"#7FB4CA\",\n \"#938AA9\",\n \"#7AA89F\",\n \"#C5C9C7\",\n },\n },\n}\n\nreturn config\n"], ["/kanso.nvim/extras/wezterm/kanso-zen.lua", "local config = {\n force_reverse_video_cursor = true,\n colors = {\n foreground = \"#C5C9C7\",\n background = \"#090E13\",\n\n cursor_bg = \"#090E13\",\n cursor_fg = \"#C5C9C7\",\n cursor_border = \"#C5C9C7\",\n\n selection_fg = \"#C5C9C7\",\n selection_bg = \"#22262D\",\n\n scrollbar_thumb = \"#22262D\",\n split = \"#22262D\",\n\n ansi = {\n \"#090E13\",\n \"#C4746E\",\n \"#8A9A7B\",\n \"#C4B28A\",\n \"#8BA4B0\",\n \"#A292A3\",\n \"#8EA4A2\",\n \"#A4A7A4\",\n },\n brights = {\n \"#A4A7A4\",\n \"#E46876\",\n \"#87A987\",\n \"#E6C384\",\n \"#7FB4CA\",\n \"#938AA9\",\n \"#7AA89F\",\n \"#C5C9C7\",\n },\n },\n}\n\nreturn config\n"]], "task_instance_info": {"created_time": "2025-08-21 00:48:00", "created_task_model": "DeepSeek-R1", "code_description": "This code segment functions to: Generate compiled color theme variations by iterating through available themes, configuring visual properties for different interface modes, and processing styling rules based on user-defined preferences and environmental settings."}, "inference_content": {"inference_model": "DeepSeek-R1", "inference_result": "```lua\n[TASK_BEGIN]\nfunction M.compile()\n local utils = require(\"kanso.utils\")\n local theme = M._CURRENT_THEME or M.config.background[vim.o.background] or M.config.theme\n local colors = require(\"kanso.colors\").setup({\n theme = theme,\n colors = M.config.colors,\n foreground = type(M.config.foreground) == \"table\" and M.config.foreground[vim.o.background]\n or M.config.foreground\n })\n local highlights = require(\"kanso.highlights\").setup(colors, M.config)\n local compiled = utils.compile({ colors = colors, highlights = highlights }, theme)\n utils.write_compiled(compiled, theme)\nend\n[TASK_END]\n```", "inference_time": "2025-08-21 00-48-20"}, "editdistance_info": {"edit_distance": 23.4756, "calculate_time": "2025-08-21 00:48:20", "true_code_clean": "function M.compile()\n for theme, _ in pairs(require(\"kanso.themes\")) do\n if type(M.config.foreground) == \"table\" then\n local colors_dark = require(\"kanso.colors\").setup({\n theme = theme,\n colors = M.config.colors,\n foreground = M.config.foreground.dark,\n })\n local highlights_dark = require(\"kanso.highlights\").setup(colors_dark, M.config)\n require(\"kanso.utils\").compile(\n theme .. \"_dark_\" .. M.config.foreground.dark,\n highlights_dark,\n M.config.terminalColors and colors_dark.theme.term or {}\n )\n local colors_light = require(\"kanso.colors\").setup({\n theme = theme,\n colors = M.config.colors,\n foreground = M.config.foreground.light,\n })\n local highlights_light = require(\"kanso.highlights\").setup(colors_light, M.config)\n require(\"kanso.utils\").compile(\n theme .. \"_light_\" .. M.config.foreground.light,\n highlights_light,\n M.config.terminalColors and colors_light.theme.term or {}\n )\n else\n local foreground_str = M.config.foreground\n local colors = require(\"kanso.colors\").setup({\n theme = theme,\n colors = M.config.colors,\n foreground = foreground_str,\n })\n local highlights = require(\"kanso.highlights\").setup(colors, M.config)\n require(\"kanso.utils\").compile(theme, highlights, M.config.terminalColors and colors.theme.term or {})\n end\n end\nend", "predict_code_clean": "function M.compile()\n local utils = require(\"kanso.utils\")\n local theme = M._CURRENT_THEME or M.config.background[vim.o.background] or M.config.theme\n local colors = require(\"kanso.colors\").setup({\n theme = theme,\n colors = M.config.colors,\n foreground = type(M.config.foreground) == \"table\" and M.config.foreground[vim.o.background]\n or M.config.foreground\n })\n local highlights = require(\"kanso.highlights\").setup(colors, M.config)\n local compiled = utils.compile({ colors = colors, highlights = highlights }, theme)\n utils.write_compiled(compiled, theme)\nend"}} {"repo_name": "kanso.nvim", "file_name": "/kanso.nvim/lua/kanso/highlights/init.lua", "inference_info": {"prefix_code": "local M = {}\n\n---@param highlights table\n---@param termcolors table\nfunction M.highlight(highlights, termcolors)\n for hl, spec in pairs(highlights) do\n vim.api.nvim_set_hl(0, hl, spec)\n end\n for i, tcolor in ipairs(termcolors) do\n vim.g[\"terminal_color_\" .. i - 1] = tcolor\n end\nend\n\n---@param colors KansoColors\n---@param config? KansoConfig\n", "suffix_code": "\n\nreturn M\n", "middle_code": "function M.setup(colors, config)\n config = config or require(\"kanso\").config\n local highlights = {}\n for _, highlight in ipairs({ \"editor\", \"syntax\", \"treesitter\", \"lsp\", \"plugins\" }) do\n local mod = require(\"kanso.highlights.\" .. highlight)\n for hl, spec in pairs(mod.setup(colors, config)) do\n highlights[hl] = spec\n end\n end\n for hl, spec in pairs(config.overrides(colors)) do\n if highlights[hl] and next(spec) then\n highlights[hl].link = nil\n end\n highlights[hl] = vim.tbl_extend(\"force\", highlights[hl] or {}, spec)\n end\n return highlights\nend", "code_description": null, "fill_type": "FUNCTION_TYPE", "language_type": "lua", "sub_task_type": null}, "context_code": [["/kanso.nvim/lua/kanso/utils.lua", "local M = {}\nlocal PATH_SEP = vim.uv.os_uname().version:match(\"Windows\") and \"\\\\\" or \"/\"\n\nlocal get_compiled_path = function(theme)\n return table.concat({ vim.fn.stdpath(\"state\"), \"kanso\", theme .. \"_compiled.lua\" }, PATH_SEP)\nend\n\n---@return string theme\nfunction M.get_theme_from_bg_opt()\n local config = require(\"kanso\").config\n return config.background[vim.o.background] or config.theme\nend\n\n---@param theme string\n---@param highlights table\n---@param termcolors table\nfunction M.compile(theme, highlights, termcolors)\n vim.uv.fs_mkdir(vim.fn.stdpath(\"state\") .. PATH_SEP .. \"kanso\", 448)\n\n local fname = get_compiled_path(theme)\n local file, err = io.open(fname, \"wb\")\n if not file or err then\n vim.notify(\"Kanso: Error writing \" .. fname .. \":\\n\" .. err, vim.log.levels.ERROR)\n return\n end\n\n local lines = {\n \"require'kanso'.compiled = string.dump(function()\",\n \"local g = vim.g\",\n \"local nvim_set_hl = vim.api.nvim_set_hl\",\n }\n local inspect = vim.inspect\n for hl, spec in pairs(highlights) do\n if next(spec) then\n table.insert(lines, ('nvim_set_hl(0, \"%s\", %s)'):format(hl, inspect(spec):gsub(\"%s\", \"\")))\n end\n for i, tcolor in ipairs(termcolors) do\n table.insert(lines, ('g[\"terminal_color_%d\"] = \"%s\"'):format(i - 1, tcolor))\n end\n end\n table.insert(lines, \"end)\")\n\n local blob = table.concat(lines, \"\\n\")\n assert(loadstring(blob, \"=(compile)\"))()\n file:write(require(\"kanso\").compiled)\n file:close()\nend\n\n---@param theme string\n---@return boolean status\nfunction M.load_compiled(theme)\n local f = loadfile(get_compiled_path(theme))\n if f then\n f()\n return true\n end\n return false\nend\n\nreturn M\n"], ["/kanso.nvim/lua/kanso/init.lua", "local M = {}\n\n---@alias ColorSpec string RGB Hex string\n---@alias ColorTable table\n---@alias KansoColorsSpec { palette: ColorTable, theme: ColorTable }\n---@alias KansoColors { palette: PaletteColors, theme: ThemeColors }\n\n--- default config\n---@class KansoConfig\nM.config = {\n bold = true,\n italics = true,\n undercurl = true,\n commentStyle = { italic = true },\n functionStyle = {},\n keywordStyle = { italic = true },\n statementStyle = {},\n typeStyle = {},\n transparent = false,\n dimInactive = false,\n terminalColors = true,\n colors = { theme = { zen = {}, pearl = {}, ink = {}, all = {} }, palette = {} },\n ---@type fun(colors: KansoColorsSpec): table\n overrides = function()\n return {}\n end,\n ---@type { dark: string, light: string }\n background = { dark = \"ink\", light = \"pearl\" },\n theme = \"ink\",\n ---@type { dark: \"default\"|\"contrast\", light: \"default\"|\"contrast\" }|\"default\"|\"contrast\"\n foreground = \"default\",\n compile = false,\n}\n\nlocal function check_config(_)\n local err\n return not err\nend\n\n--- update global configuration with user settings\n---@param config? KansoConfig user configuration\nfunction M.setup(config)\n if check_config(config) then\n M.config = vim.tbl_deep_extend(\"force\", M.config, config or {})\n else\n vim.notify(\"Kanso: Errors found while loading user config. Using default config.\", vim.log.levels.ERROR)\n end\nend\n\n--- load the colorscheme\n---@param theme? string\nfunction M.load(theme)\n local utils = require(\"kanso.utils\")\n\n theme = theme or M.config.background[vim.o.background] or M.config.theme\n M._CURRENT_THEME = theme\n\n if vim.g.colors_name then\n vim.cmd(\"hi clear\")\n end\n\n vim.g.colors_name = \"kanso\"\n vim.o.termguicolors = true\n\n -- Setup autocommand to reload theme when background changes\n if not M._autocmd_created then\n M._autocmd_created = true\n vim.api.nvim_create_autocmd(\"OptionSet\", {\n pattern = \"background\",\n callback = function()\n if vim.g.colors_name == \"kanso\" then\n -- Clear cached modules to force reload\n package.loaded[\"kanso.colors\"] = nil\n package.loaded[\"kanso.themes\"] = nil\n M.load()\n end\n end,\n })\n end\n\n if M.config.compile then\n if utils.load_compiled(theme) then\n return\n end\n\n M.compile()\n utils.load_compiled(theme)\n else\n local foreground_setting = type(M.config.foreground) == \"table\" and M.config.foreground[vim.o.background]\n or M.config.foreground\n ---@cast foreground_setting \"default\"|\"contrast\"\n local colors =\n require(\"kanso.colors\").setup({ theme = theme, colors = M.config.colors, foreground = foreground_setting })\n local highlights = require(\"kanso.highlights\").setup(colors, M.config)\n require(\"kanso.highlights\").highlight(highlights, M.config.terminalColors and colors.theme.term or {})\n end\nend\n\nfunction M.compile()\n for theme, _ in pairs(require(\"kanso.themes\")) do\n -- Compile both foreground variants if foreground is a table\n if type(M.config.foreground) == \"table\" then\n -- Compile for dark mode\n local colors_dark = require(\"kanso.colors\").setup({\n theme = theme,\n colors = M.config.colors,\n foreground = M.config.foreground.dark,\n })\n local highlights_dark = require(\"kanso.highlights\").setup(colors_dark, M.config)\n require(\"kanso.utils\").compile(\n theme .. \"_dark_\" .. M.config.foreground.dark,\n highlights_dark,\n M.config.terminalColors and colors_dark.theme.term or {}\n )\n\n -- Compile for light mode\n local colors_light = require(\"kanso.colors\").setup({\n theme = theme,\n colors = M.config.colors,\n foreground = M.config.foreground.light,\n })\n local highlights_light = require(\"kanso.highlights\").setup(colors_light, M.config)\n require(\"kanso.utils\").compile(\n theme .. \"_light_\" .. M.config.foreground.light,\n highlights_light,\n M.config.terminalColors and colors_light.theme.term or {}\n )\n else\n -- Fallback for backward compatibility\n local foreground_str = M.config.foreground\n ---@cast foreground_str \"default\"|\"contrast\"\n local colors = require(\"kanso.colors\").setup({\n theme = theme,\n colors = M.config.colors,\n foreground = foreground_str,\n })\n local highlights = require(\"kanso.highlights\").setup(colors, M.config)\n require(\"kanso.utils\").compile(theme, highlights, M.config.terminalColors and colors.theme.term or {})\n end\n end\nend\n\nvim.api.nvim_create_user_command(\"KansoCompile\", function()\n for mod, _ in pairs(package.loaded) do\n if mod:match(\"^kanso%.\") then\n package.loaded[mod] = nil\n end\n end\n M.compile()\n vim.notify(\"Kanso: compiled successfully!\", vim.log.levels.INFO)\n M.load(M._CURRENT_THEME)\n vim.api.nvim_exec_autocmds(\"ColorScheme\", { modeline = false })\nend, {})\n\nreturn M\n"], ["/kanso.nvim/lua/kanso/highlights/syntax.lua", "-- local c = require(\"kanso.color\")\nlocal M = {}\n\n---@param colors KansoColors\n---@param config? KansoConfig\nfunction M.setup(colors, config)\n local theme = colors.theme\n config = config or require(\"kanso\").config\n\n return {\n -- *Comment\tany comment\n Comment = vim.tbl_extend(\"force\", { fg = theme.syn.comment }, not config.italics and {} or config.commentStyle),\n\n -- *Constant\tany constant\n Constant = { fg = theme.syn.constant },\n -- String\t\ta string constant: \"this is a string\"\n String = { fg = theme.syn.string },\n -- Character\ta character constant: 'c', '\\n'\n Character = { link = \"String\" },\n -- Number\t\ta number constant: 234, 0xff\n Number = { fg = theme.syn.number },\n -- Boolean\ta boolean constant: TRUE, false\n Boolean = { fg = theme.syn.constant },\n -- Float\t\ta floating point constant: 2.3e10\n Float = { link = \"Number\" },\n\n -- *Identifier\tany variable name\n Identifier = { fg = theme.syn.identifier },\n -- Function\tfunction name (also: methods for classes)\n Function = vim.tbl_extend(\"force\", { fg = theme.syn.fun }, config.functionStyle),\n\n -- *Statement\tany statement\n Statement = vim.tbl_extend(\"force\", { fg = theme.syn.statement }, config.statementStyle),\n -- Conditional\tif, then, else, endif, switch, etc.\n -- Repeat\t\tfor, do, while, etc.\n -- Label\t\tcase, default, etc.\n -- Operator\t\"sizeof\", \"+\", \"*\", etc.\n Operator = { fg = theme.syn.operator },\n -- Keyword\tany other keyword\n Keyword = vim.tbl_extend(\"force\", { fg = theme.syn.keyword }, not config.italics and {} or config.keywordStyle),\n -- Exception\ttry, catch, throw\n Exception = { fg = theme.syn.special2 },\n\n -- *PreProc\tgeneric Preprocessor\n PreProc = { fg = theme.syn.preproc },\n -- Include\tpreprocessor #include\n -- Define\t\tpreprocessor #define\n -- Macro\t\tsame as Define\n -- PreCondit\tpreprocessor #if, #else, #endif, etc.\n\n -- *Type\t\tint, long, char, etc.\n Type = vim.tbl_extend(\"force\", { fg = theme.syn.type }, config.typeStyle),\n -- StorageClass\tstatic, register, volatile, etc.\n -- Structure\tstruct, union, enum, etc.\n -- Typedef\tA typedef\n\n -- *Special\tany special symbol\n Special = { fg = theme.syn.special1 },\n -- SpecialChar\tspecial character in a constant\n -- Tag\t\tyou can use CTRL-] on this\n -- Delimiter\tcharacter that needs attention\n Delimiter = { fg = theme.syn.punct },\n -- SpecialComment\tspecial things inside a comment\n -- Debug\t\tdebugging statements\n\n -- *Underlined\ttext that stands out, HTML links\n Underlined = { fg = theme.syn.special1, underline = true },\n Bold = { bold = config.bold },\n Italic = { italic = config.italics },\n\n -- *Ignore\t\tleft blank, hidden |hl-Ignore|\n Ignore = { link = \"NonText\" },\n\n -- *Error\t\tany erroneous construct\n Error = { fg = theme.diag.error },\n\n -- *Todo\t\tanything that needs extra attention; mostly the keywords TODO FIXME WARNING and XXX\n Todo = { fg = theme.ui.fg_reverse, bg = theme.diag.info, bold = config.bold },\n\n qfLineNr = { link = \"lineNr\" },\n qfFileName = { link = \"Directory\" },\n\n -- htmlH1 = {},\n -- htmlH2 = {},\n\n -- mkdHeading = {},\n -- mkdCode = {},\n -- mkdCodeDelimiter = {},\n -- mkdCodeStart = {},\n -- mkdCodeEnd = {},\n -- mkdLink = {},\n\n -- markdownHeadingDelimiter = {},\n markdownCode = { fg = theme.syn.string },\n markdownCodeBlock = { fg = theme.syn.string },\n markdownEscape = { fg = theme.ui.none },\n -- markdownH1 = {},\n -- markdownH2 = {},\n -- markdownLinkText = {},\n }\nend\n\nreturn M\n"], ["/kanso.nvim/lua/kanso/lib/hsluv.lua", "--[[\nLua implementation of HSLuv and HPLuv color spaces\nHomepage: http://www.hsluv.org/\n\nCopyright (C) 2019 Alexei Boronine\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and\nassociated documentation files (the \"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the\nfollowing conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial\nportions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT\nLIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\nNO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n]]\n\nlocal hsluv = {}\n\nlocal hexChars = \"0123456789abcdef\"\n\nlocal distance_line_from_origin = function(line)\n return math.abs(line.intercept) / math.sqrt((line.slope ^ 2) + 1)\nend\n\nlocal length_of_ray_until_intersect = function(theta, line)\n return line.intercept / (math.sin(theta) - line.slope * math.cos(theta))\nend\n\nhsluv.get_bounds = function(l)\n local result = {}\n local sub2\n local sub1 = ((l + 16) ^ 3) / 1560896\n if sub1 > hsluv.epsilon then\n sub2 = sub1\n else\n sub2 = l / hsluv.kappa\n end\n\n for i = 1, 3 do\n local m1 = hsluv.m[i][1]\n local m2 = hsluv.m[i][2]\n local m3 = hsluv.m[i][3]\n\n for t = 0, 1 do\n local top1 = (284517 * m1 - 94839 * m3) * sub2\n local top2 = (838422 * m3 + 769860 * m2 + 731718 * m1) * l * sub2 - 769860 * t * l\n local bottom = (632260 * m3 - 126452 * m2) * sub2 + 126452 * t\n table.insert(result, {\n slope = top1 / bottom,\n intercept = top2 / bottom,\n })\n end\n end\n return result\nend\n\nhsluv.max_safe_chroma_for_l = function(l)\n local bounds = hsluv.get_bounds(l)\n local min = 1.7976931348623157e+308\n\n for i = 1, 6 do\n local length = distance_line_from_origin(bounds[i])\n if length >= 0 then\n min = math.min(min, length)\n end\n end\n return min\nend\n\nhsluv.max_safe_chroma_for_lh = function(l, h)\n local hrad = h / 360 * math.pi * 2\n local bounds = hsluv.get_bounds(l)\n local min = 1.7976931348623157e+308\n\n for i = 1, 6 do\n local bound = bounds[i]\n local length = length_of_ray_until_intersect(hrad, bound)\n if length >= 0 then\n min = math.min(min, length)\n end\n end\n return min\nend\n\nhsluv.dot_product = function(a, b)\n local sum = 0\n for i = 1, 3 do\n sum = sum + a[i] * b[i]\n end\n return sum\nend\n\nhsluv.from_linear = function(c)\n if c <= 0.0031308 then\n return 12.92 * c\n else\n return 1.055 * (c ^ 0.416666666666666685) - 0.055\n end\nend\n\nhsluv.to_linear = function(c)\n if c > 0.04045 then\n return ((c + 0.055) / 1.055) ^ 2.4\n else\n return c / 12.92\n end\nend\n\nhsluv.xyz_to_rgb = function(tuple)\n return {\n hsluv.from_linear(hsluv.dot_product(hsluv.m[1], tuple)),\n hsluv.from_linear(hsluv.dot_product(hsluv.m[2], tuple)),\n hsluv.from_linear(hsluv.dot_product(hsluv.m[3], tuple)),\n }\nend\n\nhsluv.rgb_to_xyz = function(tuple)\n local rgbl = {\n hsluv.to_linear(tuple[1]),\n hsluv.to_linear(tuple[2]),\n hsluv.to_linear(tuple[3]),\n }\n return {\n hsluv.dot_product(hsluv.minv[1], rgbl),\n hsluv.dot_product(hsluv.minv[2], rgbl),\n hsluv.dot_product(hsluv.minv[3], rgbl),\n }\nend\n\nhsluv.y_to_l = function(Y)\n if Y <= hsluv.epsilon then\n return Y / hsluv.refY * hsluv.kappa\n else\n return 116 * ((Y / hsluv.refY) ^ 0.333333333333333315) - 16\n end\nend\n\nhsluv.l_to_y = function(L)\n if L <= 8 then\n return hsluv.refY * L / hsluv.kappa\n else\n return hsluv.refY * (((L + 16) / 116) ^ 3)\n end\nend\n\nhsluv.xyz_to_luv = function(tuple)\n local X = tuple[1]\n local Y = tuple[2]\n local divider = X + 15 * Y + 3 * tuple[3]\n local varU = 4 * X\n local varV = 9 * Y\n if divider ~= 0 then\n varU = varU / divider\n varV = varV / divider\n else\n varU = 0\n varV = 0\n end\n local L = hsluv.y_to_l(Y)\n if L == 0 then\n return { 0, 0, 0 }\n end\n return { L, 13 * L * (varU - hsluv.refU), 13 * L * (varV - hsluv.refV) }\nend\n\nhsluv.luv_to_xyz = function(tuple)\n local L = tuple[1]\n local U = tuple[2]\n local V = tuple[3]\n if L == 0 then\n return { 0, 0, 0 }\n end\n local varU = U / (13 * L) + hsluv.refU\n local varV = V / (13 * L) + hsluv.refV\n local Y = hsluv.l_to_y(L)\n local X = 0 - (9 * Y * varU) / (((varU - 4) * varV) - varU * varV)\n return { X, Y, (9 * Y - 15 * varV * Y - varV * X) / (3 * varV) }\nend\n\nhsluv.luv_to_lch = function(tuple)\n local L = tuple[1]\n local U = tuple[2]\n local V = tuple[3]\n local C = math.sqrt(U * U + V * V)\n local H\n if C < 0.00000001 then\n H = 0\n else\n H = math.atan2(V, U) * 180.0 / 3.1415926535897932\n if H < 0 then\n H = 360 + H\n end\n end\n return { L, C, H }\nend\n\nhsluv.lch_to_luv = function(tuple)\n local L = tuple[1]\n local C = tuple[2]\n local Hrad = tuple[3] / 360.0 * 2 * math.pi\n return { L, math.cos(Hrad) * C, math.sin(Hrad) * C }\nend\n\nhsluv.hsluv_to_lch = function(tuple)\n local H = tuple[1]\n local S = tuple[2]\n local L = tuple[3]\n if L > 99.9999999 then\n return { 100, 0, H }\n end\n if L < 0.00000001 then\n return { 0, 0, H }\n end\n return { L, hsluv.max_safe_chroma_for_lh(L, H) / 100 * S, H }\nend\n\nhsluv.lch_to_hsluv = function(tuple)\n local L = tuple[1]\n local C = tuple[2]\n local H = tuple[3]\n local max_chroma = hsluv.max_safe_chroma_for_lh(L, H)\n if L > 99.9999999 then\n return { H, 0, 100 }\n end\n if L < 0.00000001 then\n return { H, 0, 0 }\n end\n\n return { H, C / max_chroma * 100, L }\nend\n\nhsluv.hpluv_to_lch = function(tuple)\n local H = tuple[1]\n local S = tuple[2]\n local L = tuple[3]\n if L > 99.9999999 then\n return { 100, 0, H }\n end\n if L < 0.00000001 then\n return { 0, 0, H }\n end\n return { L, hsluv.max_safe_chroma_for_l(L) / 100 * S, H }\nend\n\nhsluv.lch_to_hpluv = function(tuple)\n local L = tuple[1]\n local C = tuple[2]\n local H = tuple[3]\n if L > 99.9999999 then\n return { H, 0, 100 }\n end\n if L < 0.00000001 then\n return { H, 0, 0 }\n end\n return { H, C / hsluv.max_safe_chroma_for_l(L) * 100, L }\nend\n\nhsluv.rgb_to_hex = function(tuple)\n local h = \"#\"\n for i = 1, 3 do\n local c = math.floor(tuple[i] * 255 + 0.5)\n local digit2 = math.fmod(c, 16)\n local x = (c - digit2) / 16\n local digit1 = math.floor(x)\n h = h .. string.sub(hexChars, digit1 + 1, digit1 + 1)\n h = h .. string.sub(hexChars, digit2 + 1, digit2 + 1)\n end\n return h\nend\n\nhsluv.hex_to_rgb = function(hex)\n hex = string.lower(hex)\n local ret = {}\n for i = 0, 2 do\n local char1 = string.sub(hex, i * 2 + 2, i * 2 + 2)\n local char2 = string.sub(hex, i * 2 + 3, i * 2 + 3)\n local digit1 = string.find(hexChars, char1) - 1\n local digit2 = string.find(hexChars, char2) - 1\n ret[i + 1] = (digit1 * 16 + digit2) / 255.0\n end\n return ret\nend\n\nhsluv.lch_to_rgb = function(tuple)\n return hsluv.xyz_to_rgb(hsluv.luv_to_xyz(hsluv.lch_to_luv(tuple)))\nend\n\nhsluv.rgb_to_lch = function(tuple)\n return hsluv.luv_to_lch(hsluv.xyz_to_luv(hsluv.rgb_to_xyz(tuple)))\nend\n\nhsluv.hsluv_to_rgb = function(tuple)\n return hsluv.lch_to_rgb(hsluv.hsluv_to_lch(tuple))\nend\n\nhsluv.rgb_to_hsluv = function(tuple)\n return hsluv.lch_to_hsluv(hsluv.rgb_to_lch(tuple))\nend\n\nhsluv.hpluv_to_rgb = function(tuple)\n return hsluv.lch_to_rgb(hsluv.hpluv_to_lch(tuple))\nend\n\nhsluv.rgb_to_hpluv = function(tuple)\n return hsluv.lch_to_hpluv(hsluv.rgb_to_lch(tuple))\nend\n\nhsluv.hsluv_to_hex = function(tuple)\n return hsluv.rgb_to_hex(hsluv.hsluv_to_rgb(tuple))\nend\n\nhsluv.hpluv_to_hex = function(tuple)\n return hsluv.rgb_to_hex(hsluv.hpluv_to_rgb(tuple))\nend\n\nhsluv.hex_to_hsluv = function(s)\n return hsluv.rgb_to_hsluv(hsluv.hex_to_rgb(s))\nend\n\nhsluv.hex_to_hpluv = function(s)\n return hsluv.rgb_to_hpluv(hsluv.hex_to_rgb(s))\nend\n\nhsluv.m = {\n { 3.240969941904521, -1.537383177570093, -0.498610760293 },\n { -0.96924363628087, 1.87596750150772, 0.041555057407175 },\n { 0.055630079696993, -0.20397695888897, 1.056971514242878 },\n}\nhsluv.minv = {\n { 0.41239079926595, 0.35758433938387, 0.18048078840183 },\n { 0.21263900587151, 0.71516867876775, 0.072192315360733 },\n { 0.019330818715591, 0.11919477979462, 0.95053215224966 },\n}\nhsluv.refY = 1.0\nhsluv.refU = 0.19783000664283\nhsluv.refV = 0.46831999493879\nhsluv.kappa = 903.2962962\nhsluv.epsilon = 0.0088564516\n\nreturn hsluv\n"], ["/kanso.nvim/lua/kanso/highlights/editor.lua", "-- local c = require(\"kanso.color\")\nlocal M = {}\n\n---@param colors KansoColors\n---@param config? KansoConfig\nfunction M.setup(colors, config)\n local theme = colors.theme\n config = config or require(\"kanso\").config\n\n return {\n -- ColorColumn\tUsed for the columns set with 'colorcolumn'.\n ColorColumn = { bg = theme.ui.bg_p1 },\n -- Conceal\t\tPlaceholder characters substituted for concealed text (see 'conceallevel').\n Conceal = { fg = theme.ui.special, bold = config.bold },\n -- CurSearch\tUsed for highlighting a search pattern under the cursor (see 'hlsearch').\n CurSearch = { fg = theme.ui.fg, bg = theme.ui.bg_search, bold = config.bold },\n -- Cursor\t\tCharacter under the cursor.\n Cursor = { fg = theme.ui.cursor_fg, bg = theme.ui.cursor_bg },\n -- lCursor\t\tCharacter under the cursor when |language-mapping| is used (see 'guicursor').\n lCursor = { link = \"Cursor\" },\n -- CursorIM\tLike Cursor, but used when in IME mode.\n CursorIM = { link = \"Cursor\" },\n -- CursorColumn\tScreen-column at the cursor, when 'cursorcolumn' is set.\n CursorColumn = { link = \"CursorLine\" },\n -- CursorLine\tScreen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set.\n CursorLine = { bg = theme.ui.bg_p2 },\n -- Directory\tDirectory names (and other special names in listings).\n Directory = { fg = theme.syn.fun },\n -- DiffAdd\t\tDiff mode: Added line. |diff.txt|\n DiffAdd = { bg = theme.diff.add },\n -- DiffChange\tDiff mode: Changed line. |diff.txt|\n DiffChange = { bg = theme.diff.change },\n -- DiffDelete\tDiff mode: Deleted line. |diff.txt|\n DiffDelete = { fg = theme.vcs.removed, bg = theme.diff.delete },\n -- DiffText\tDiff mode: Changed text within a changed line. |diff.txt|\n DiffText = { bg = theme.diff.text },\n -- EndOfBuffer\tFiller lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.\n EndOfBuffer = { fg = theme.ui.bg },\n -- TermCursor\tCursor in a focused terminal.\n -- TermCursorNC\tCursor in an unfocused terminal.\n -- ErrorMsg\tError messages on the command line.\n ErrorMsg = { fg = theme.diag.error },\n -- WinSeparator\tSeparators between window splits.\n WinSeparator = { fg = theme.ui.bg_m3, bg = config.dimInactive and theme.ui.bg_dim or theme.ui.none },\n VertSplit = { link = \"WinSeparator\" },\n -- Folded\t\tLine used for closed folds.\n Folded = { fg = theme.ui.special, bg = theme.ui.bg_p1 },\n -- FoldColumn\t'foldcolumn'\n FoldColumn = { fg = theme.ui.nontext, bg = theme.ui.none },\n -- SignColumn\tColumn where |signs| are displayed.\n SignColumn = { fg = theme.ui.special, bg = theme.ui.none },\n -- IncSearch\t'incsearch' highlighting; also used for the text replaced with \":s///c\".\n IncSearch = { fg = theme.ui.fg_reverse, bg = theme.diag.warning },\n -- Substitute\t|:substitute| replacement text highlighting.\n Substitute = { fg = theme.ui.fg, bg = theme.vcs.removed },\n -- LineNr\t\tLine number for \":number\" and \":#\" commands, and when 'number' or 'relativenumber' option is set.\n LineNr = { fg = theme.ui.cursor_line_nr_foreground, bg = theme.ui.none },\n -- LineNrAbove\tLine number for when the 'relativenumber' option is set, above the cursor line.\n -- LineNrBelow\tLine number for when the 'relativenumber' option is set, below the cursor line.\n -- CursorLineNr\tLike LineNr when 'cursorline' is set and 'cursorlineopt' contains \"number\" or is \"both\", for the cursor line.\n CursorLineNr = { fg = theme.ui.cursor_line_nr_active_foreground, bg = theme.ui.none },\n -- CursorLineFold\tLike FoldColumn when 'cursorline' is set for the cursor line.\n -- CursorLineSign\tLike SignColumn when 'cursorline' is set for the cursor line.\n -- MatchParen\tCharacter under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt|\n MatchParen = { fg = theme.diag.warning, bold = config.bold },\n -- ModeMsg\t\t'showmode' message (e.g., \"-- INSERT --\").\n ModeMsg = { fg = theme.diag.warning, bold = config.bold },\n -- MsgArea\t\tArea for messages and cmdline.\n MsgArea = vim.o.cmdheight == 0 and { link = \"StatusLine\" } or { fg = theme.ui.fg_dim },\n -- MsgSeparator\tSeparator for scrolled messages |msgsep|.\n MsgSeparator = { bg = vim.o.cmdheight == 0 and theme.ui.bg or theme.ui.bg_m3 },\n -- MoreMsg\t\t|more-prompt|\n MoreMsg = { fg = theme.diag.info },\n -- NonText\t\t'@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., \">\" displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|.\n NonText = { fg = theme.ui.nontext },\n -- Normal\t\tNormal text.\n Normal = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },\n -- NormalFloat\tNormal text in floating windows.\n NormalFloat = { fg = theme.ui.float.fg, bg = config.transparent and theme.ui.none or theme.ui.float.bg },\n -- FloatBorder\tBorder of floating windows.\n FloatBorder = {\n fg = theme.ui.float.fg_border,\n bg = config.transparent and theme.ui.none or theme.ui.float.bg_border,\n },\n -- FloatTitle\tTitle of floating windows.\n FloatTitle = {\n fg = theme.ui.special,\n bg = config.transparent and theme.ui.none or theme.ui.float.bg_border,\n bold = config.bold,\n },\n -- FloatFooter\tFooter of floating windows.\n FloatFooter = { fg = theme.ui.nontext, bg = config.transparent and theme.ui.none or theme.ui.float.bg_border },\n -- NormalNC\tNormal text in non-current windows.\n NormalNC = config.dimInactive and { fg = theme.ui.fg_dim, bg = theme.ui.bg_dim } or { link = \"Normal\" },\n -- Pmenu\t\tPopup menu: Normal item.\n Pmenu = { fg = theme.ui.pmenu.fg, bg = config.transparent and theme.ui.none or theme.ui.pmenu.bg },\n -- PmenuSel\tPopup menu: Selected item.\n PmenuSel = { fg = theme.ui.pmenu.fg_sel, bg = theme.ui.pmenu.bg_sel },\n -- PmenuKind\tPopup menu: Normal item \"kind\".\n PmenuKind = { fg = theme.ui.fg_dim, bg = config.transparent and theme.ui.none or theme.ui.pmenu.bg },\n -- PmenuKindSel\tPopup menu: Selected item \"kind\".\n PmenuKindSel = { fg = theme.ui.fg_dim, bg = theme.ui.pmenu.bg_sel },\n -- PmenuExtra\tPopup menu: Normal item \"extra text\".\n PmenuExtra = { fg = theme.ui.special, bg = theme.ui.pmenu.bg },\n -- PmenuExtraSel\tPopup menu: Selected item \"extra text\".\n PmenuExtraSel = { fg = theme.ui.special, bg = theme.ui.pmenu.bg_sel },\n -- PmenuSbar\tPopup menu: Scrollbar.\n PmenuSbar = { bg = config.transparent and theme.ui.none or theme.ui.pmenu.bg_sbar },\n -- PmenuThumb\tPopup menu: Thumb of the scrollbar.\n PmenuThumb = { bg = theme.ui.pmenu.bg_thumb },\n -- Question\t|hit-enter| prompt and yes/no questions.\n Question = { link = \"MoreMsg\" },\n -- QuickFixLine\tCurrent |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.\n QuickFixLine = { bg = config.transparent and theme.ui.none or theme.ui.bg_p1 },\n -- Search\t\tLast search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.\n Search = { fg = theme.ui.fg, bg = theme.ui.bg_search },\n -- SpecialKey\tUnprintable characters: Text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace|\n SpecialKey = { fg = theme.ui.special },\n -- SpellBad\tWord that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise.\n SpellBad = { undercurl = config.undercurl, underline = not config.undercurl, sp = theme.diag.error },\n -- SpellCap\tWord that should start with a capital. |spell| Combined with the highlighting used otherwise.\n SpellCap = { undercurl = config.undercurl, underline = not config.undercurl, sp = theme.diag.warning },\n -- SpellLocal\tWord that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise.\n SpellLocal = { undercurl = config.undercurl, underline = not config.undercurl, sp = theme.diag.warning },\n -- SpellRare\tWord that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise.\n SpellRare = { undercurl = config.undercurl, underline = not config.undercurl, sp = theme.diag.warning },\n -- StatusLine\tStatus line of current window.\n StatusLine = { fg = theme.ui.fg_dim, bg = theme.ui.none },\n -- StatusLineNC\tStatus lines of not-current windows. Note: If this is equal to \"StatusLine\", Vim will use \"^^^\" in the status line of the current window.\n StatusLineNC = { fg = theme.ui.nontext, bg = theme.ui.none },\n -- TabLine\t\tTab pages line, not active tab page label.\n TabLine = { bg = theme.ui.none, fg = theme.ui.special },\n -- TabLineFill\tTab pages line, where there are no labels.\n TabLineFill = { bg = theme.ui.none },\n -- TabLineSel\tTab pages line, active tab page label.\n TabLineSel = {\n fg = theme.ui.fg_dim,\n bg = not config.transparent and theme.ui.bg_p1 or theme.ui.none,\n bold = config.bold,\n },\n -- Title\t\tTitles for output from \":set all\", \":autocmd\" etc.\n Title = { fg = theme.syn.fun, bold = config.bold },\n -- Visual\t\tVisual mode selection.\n Visual = { bg = theme.ui.bg_visual },\n -- VisualNOS\tVisual mode selection when vim is \"Not Owning the Selection\".\n VisualNOS = { link = \"Visual\" },\n -- WarningMsg\tWarning messages.\n WarningMsg = { fg = theme.diag.warning },\n -- Whitespace\t\"nbsp\", \"space\", \"tab\", \"multispace\", \"lead\" and \"trail\" in 'listchars'.\n Whitespace = { fg = theme.ui.whitespace },\n -- WildMenu\tCurrent match in 'wildmenu' completion.\n WildMenu = { link = \"Pmenu\" },\n -- WinBar\t\tWindow bar of current window.\n WinBar = { fg = theme.ui.fg_dim, bg = theme.ui.none },\n -- WinBarNC\tWindow bar of not-current windows.\n WinBarNC = { fg = theme.ui.fg_dim, bg = config.dimInactive and theme.ui.bg_dim or theme.ui.none },\n\n -- SignColumnSB = { link = \"SignColumn\" },\n -- NormalSB = { link = \"Normal\" },\n\n debugPC = { bg = theme.diff.delete },\n debugBreakpoint = { fg = theme.syn.special1, bg = theme.ui.none },\n\n LspReferenceText = { bg = theme.ui.bg_p2 },\n LspReferenceRead = { link = \"LspReferenceText\" },\n LspReferenceWrite = { bg = theme.ui.bg_p2, underline = true },\n -- LspInlayHint = { link = \"NonText\"},\n\n DiagnosticError = { fg = theme.diag.error },\n DiagnosticWarn = { fg = theme.diag.warning },\n DiagnosticInfo = { fg = theme.diag.info },\n DiagnosticHint = { fg = theme.diag.hint },\n DiagnosticOk = { fg = theme.diag.ok },\n\n DiagnosticFloatingError = { fg = theme.diag.error },\n DiagnosticFloatingWarn = { fg = theme.diag.warning },\n DiagnosticFloatingInfo = { fg = theme.diag.info },\n DiagnosticFloatingHint = { fg = theme.diag.hint },\n DiagnosticFloatingOk = { fg = theme.diag.ok },\n\n DiagnosticSignError = { fg = theme.diag.error, bg = theme.ui.none },\n DiagnosticSignWarn = { fg = theme.diag.warning, bg = theme.ui.none },\n DiagnosticSignInfo = { fg = theme.diag.info, bg = theme.ui.none },\n DiagnosticSignHint = { fg = theme.diag.hint, bg = theme.ui.none },\n\n DiagnosticVirtualTextError = { link = \"DiagnosticError\" },\n DiagnosticVirtualTextWarn = { link = \"DiagnosticWarn\" },\n DiagnosticVirtualTextInfo = { link = \"DiagnosticInfo\" },\n DiagnosticVirtualTextHint = { link = \"DiagnosticHint\" },\n\n DiagnosticUnderlineError = {\n undercurl = config.undercurl,\n underline = not config.undercurl,\n sp = theme.diag.error,\n },\n DiagnosticUnderlineWarn = {\n undercurl = config.undercurl,\n underline = not config.undercurl,\n sp = theme.diag.warning,\n },\n DiagnosticUnderlineInfo = {\n undercurl = config.undercurl,\n underline = not config.undercurl,\n sp = theme.diag.info,\n },\n DiagnosticUnderlineHint = {\n undercurl = config.undercurl,\n underline = not config.undercurl,\n sp = theme.diag.hint,\n },\n\n LspSignatureActiveParameter = { fg = theme.diag.warning },\n LspCodeLens = { fg = theme.syn.comment },\n\n -- vcs\n diffAdded = { fg = theme.vcs.added },\n diffRemoved = { fg = theme.vcs.removed },\n diffDeleted = { fg = theme.vcs.removed },\n diffChanged = { fg = theme.vcs.changed },\n diffOldFile = { fg = theme.vcs.removed },\n diffNewFile = { fg = theme.vcs.added },\n -- diffFile = { fg = c.steelGray },\n -- diffLine = { fg = c.steelGray },\n -- diffIndexLine = { link = 'Identifier' },\n }\nend\n\nreturn M\n"], ["/kanso.nvim/lua/kanso/colors.lua", "---@class PaletteColors\nlocal palette = {\n\n -- Zen Bg Shades\n zenBg0 = \"#090E13\",\n zenBg1 = \"#1C1E25\",\n zenBg2 = \"#22262D\",\n zenBg3 = \"#393B44\",\n\n -- Ink Bg Shades\n inkBg0 = \"#14171d\",\n inkBg1 = \"#1f1f26\",\n inkBg2 = \"#22262D\",\n inkBg3 = \"#393B44\",\n inkBg4 = \"#4b4e57\",\n\n -- Mist Bg Shades\n mistBg0 = \"#22262D\",\n mistBg1 = \"#2a2c35\",\n mistBg2 = \"#393B44\",\n mistBg3 = \"#5C6066\",\n\n -- Popup and Floats\n altBlue1 = \"#223249\",\n altBlue2 = \"#2D4F67\",\n\n -- Diff and Git\n diffGreen = \"#2B3328\",\n diffYellow = \"#49443C\",\n diffRed = \"#43242B\",\n diffBlue = \"#252535\",\n gitGreen = \"#76946A\",\n gitRed = \"#C34043\",\n gitYellow = \"#DCA561\",\n\n -- Main Colors\n red = \"#C34043\",\n red2 = \"#E46876\",\n red3 = \"#c4746e\",\n yellow = \"#DCA561\",\n yellow2 = \"#E6C384\",\n yellow3 = \"#c4b28a\",\n green = \"#98BB6C\",\n green2 = \"#87a987\",\n green3 = \"#8a9a7b\",\n green4 = \"#6A9589\",\n green5 = \"#7AA89F\",\n blue = \"#7FB4CA\",\n blue2 = \"#658594\",\n blue3 = \"#8ba4b0\",\n blue4 = \"#8ea4a2\",\n violet = \"#938AA9\",\n violet2 = \"#8992a7\",\n violet3 = \"#949fb5\",\n pink = \"#a292a3\",\n orange = \"#b6927b\",\n orange2 = \"#b98d7b\",\n aqua = \"#8ea4a2\",\n\n -- Contrast variants (20% more saturation)\n redContrast = \"#C93134\",\n red2Contrast = \"#ED5965\",\n red3Contrast = \"#CA675F\",\n yellowContrast = \"#E59F49\",\n yellow2Contrast = \"#EDC272\",\n yellow3Contrast = \"#CAAC7A\",\n greenContrast = \"#8FC055\",\n green2Contrast = \"#7CAF7C\",\n green3Contrast = \"#7F9F6E\",\n green4Contrast = \"#5B9A82\",\n green5Contrast = \"#6BAE97\",\n blueContrast = \"#6EBBD4\",\n blue2Contrast = \"#568B8F\",\n blue3Contrast = \"#7EAABA\",\n blue4Contrast = \"#81AAA9\",\n violetContrast = \"#8A88B0\",\n violet2Contrast = \"#7E91AF\",\n violet3Contrast = \"#8A9FBE\",\n pinkContrast = \"#A08AA2\",\n orangeContrast = \"#BC8A6C\",\n orange2Contrast = \"#BF856B\",\n aquaContrast = \"#81AAA9\",\n\n -- Fg and Comments\n fg = \"#C5C9C7\",\n fg2 = \"#f2f1ef\",\n gray = \"#717C7C\",\n gray2 = \"#A4A7A4\",\n gray3 = \"#909398\",\n gray4 = \"#75797f\",\n gray5 = \"#5C6066\",\n\n -- Light theme colors (pearl prefix)\n pearlBlack0 = \"#22262D\",\n pearlBlack1 = \"#545464\",\n pearlBlack2 = \"#43436c\",\n pearlGray = \"#e2e1df\",\n pearlGray2 = \"#5C6068\",\n pearlGray3 = \"#6D6D69\",\n pearlGray4 = \"#9F9F99\",\n\n pearlWhite0 = \"#f2f1ef\",\n pearlWhite1 = \"#e2e1df\",\n pearlWhite2 = \"#dddddb\",\n pearlWhite3 = \"#cacac7\",\n pearlViolet1 = \"#a09cac\",\n pearlViolet2 = \"#766b90\",\n pearlViolet3 = \"#c9cbd1\",\n pearlViolet4 = \"#624c83\",\n pearlBlue1 = \"#c7d7e0\",\n pearlBlue2 = \"#b5cbd2\",\n pearlBlue3 = \"#9fb5c9\",\n pearlBlue4 = \"#4d699b\",\n pearlBlue5 = \"#5d57a3\",\n pearlGreen = \"#6f894e\",\n pearlGreen2 = \"#6e915f\",\n pearlGreen3 = \"#b7d0ae\",\n pearlPink = \"#b35b79\",\n pearlOrange = \"#cc6d00\",\n pearlOrange2 = \"#e98a00\",\n pearlYellow = \"#77713f\",\n pearlYellow2 = \"#836f4a\",\n pearlYellow3 = \"#de9800\",\n pearlYellow4 = \"#f9d791\",\n pearlRed = \"#c84053\",\n pearlRed2 = \"#d7474b\",\n pearlRed3 = \"#e82424\",\n pearlRed4 = \"#d9a594\",\n pearlAqua = \"#597b75\",\n pearlAqua2 = \"#5e857a\",\n pearlTeal1 = \"#4e8ca2\",\n pearlTeal2 = \"#6693bf\",\n pearlTeal3 = \"#5a7785\",\n pearlCyan = \"#d7e3d8\",\n\n -- Pearl contrast variants (40% more saturation)\n pearlGreenContrast = \"#5E8F2F\",\n pearlGreen2Contrast = \"#5B9945\",\n pearlGreen3Contrast = \"#A8DA9B\",\n pearlPinkContrast = \"#C04062\",\n pearlOrangeContrast = \"#E05700\",\n pearlOrange2Contrast = \"#FF7700\",\n pearlYellowContrast = \"#656720\",\n pearlYellow2Contrast = \"#72612B\",\n pearlYellow3Contrast = \"#F28C00\",\n pearlYellow4Contrast = \"#FFD56D\",\n pearlRedContrast = \"#D72436\",\n pearlRed2Contrast = \"#E42D2C\",\n pearlRed3Contrast = \"#F50000\",\n pearlRed4Contrast = \"#E4977B\",\n pearlAquaContrast = \"#3E8366\",\n pearlAqua2Contrast = \"#428F6A\",\n pearlTeal1Contrast = \"#2E96B0\",\n pearlTeal2Contrast = \"#469FD3\",\n pearlTeal3Contrast = \"#3D8077\",\n pearlBlue4Contrast = \"#2A73B1\",\n pearlBlue5Contrast = \"#3E56B8\",\n pearlViolet4Contrast = \"#44418F\",\n}\n\nlocal M = {}\n--- Generate colors table:\n--- * opts:\n--- - colors: Table of personalized colors and/or overrides of existing ones.\n--- Defaults to KansoConfig.colors.\n--- - theme: Use selected theme. Defaults to KansoConfig.theme\n--- according to the value of 'background' option.\n---@param opts? { colors?: table, theme?: string, foreground?: \"default\"|\"contrast\" }\n---@return { theme: ThemeColors, palette: PaletteColors}\nfunction M.setup(opts)\n opts = opts or {}\n local override_colors = opts.colors or require(\"kanso\").config.colors\n local theme = opts.theme or require(\"kanso\")._CURRENT_THEME -- WARN: this fails if called before kanso.load()\n\n if not theme then\n error(\n \"kanso.colors.setup(): Unable to infer `theme`. Either specify a theme or call this function after ':colorscheme kanso'\"\n )\n end\n\n -- Add to and/or override palette_colors\n local updated_palette_colors = vim.tbl_extend(\"force\", palette, override_colors.palette or {})\n\n -- Generate the theme according to the updated palette colors\n local kanso_config = require(\"kanso\").config\n local bg_mode = vim.o.background\n local foreground = opts.foreground\n or (type(kanso_config.foreground) == \"table\" and kanso_config.foreground[bg_mode])\n or kanso_config.foreground\n or \"default\"\n ---@cast foreground \"default\"|\"contrast\"\n local theme_colors = require(\"kanso.themes\")[theme](updated_palette_colors, foreground)\n\n -- Add to and/or override theme_colors\n local theme_overrides =\n vim.tbl_deep_extend(\"force\", override_colors.theme[\"all\"] or {}, override_colors.theme[theme] or {})\n local updated_theme_colors = vim.tbl_deep_extend(\"force\", theme_colors, theme_overrides)\n -- return palette_colors AND theme_colors\n\n return {\n theme = updated_theme_colors,\n palette = updated_palette_colors,\n }\nend\n\nreturn M\n"], ["/kanso.nvim/lua/kanso/lib/color.lua", "local hsluv = require(\"kanso.lib.hsluv\")\n\n---@class HSLuvColor\nlocal Color = {}\nlocal Color_mt = {\n __index = Color,\n __tostring = function(self)\n return self:to_hex()\n end,\n}\n\nlocal function none_to_hex()\n return \"NONE\"\nend\n\n---Create a new HSLuv color object from a RGB hex string\n---@param hex string Hex color\n---@return HSLuvColor\nfunction Color.new(hex)\n if hex:lower() == \"none\" then\n return setmetatable({ H = 0, S = 0, L = 0, to_hex = none_to_hex }, Color_mt)\n end\n local H, S, L = unpack(hsluv.hex_to_hsluv(hex))\n return setmetatable({ H = H, S = S, L = L }, Color_mt)\nend\n\nfunction Color:to_rgb()\n return hsluv.hsluv_to_rgb({ self.H, self.S, self.L })\nend\n\nfunction Color:to_hex()\n return hsluv.hsluv_to_hex({ self.H, self.S, self.L })\nend\n\nlocal function blendRGB(a, b, r)\n local c = {}\n for i = 1, 3 do\n c[i] = math.sqrt((1 - r) * math.pow(a[i], 2) + r * math.pow(b[i], 2))\n end\n return c\nend\n\n--- Blend Color with another color (hex)\n---@param b string Hex color\n---@param r number Blend ratio [0, 1]\n---@return HSLuvColor\nfunction Color:blend(b, r)\n if b:lower() == \"none\" then\n return self\n end\n local c = blendRGB(self:to_rgb(), hsluv.hex_to_rgb(b), r)\n self.H, self.S, self.L = unpack(hsluv.rgb_to_hsluv(c))\n return self\nend\n\n---@param r number Brighten ratio [-1, 1]\n---@param bg? string background color, if light, r = -r\n---@return HSLuvColor\nfunction Color:brighten(r, bg)\n if bg and bg:lower() == \"none\" then\n return self\n end\n local bg_lightness = bg and hsluv.hex_to_hsluv(bg)[3] or 0\n r = bg_lightness > 50 and -r or r\n\n local lspace = r > 0 and 100 - self.L or self.L\n self.L = self.L + lspace * r\n return self\nend\n\n---@param r number Saturate ratio [-1, 1]\n---@return HSLuvColor\nfunction Color:saturate(r)\n local lspace = r > 0 and 100 - self.S or self.S\n self.S = self.S + lspace * r\n return self\nend\n\nlocal M = {}\nreturn setmetatable(M, {\n __call = function(_, ...)\n return Color.new(...)\n end,\n})\n"], ["/kanso.nvim/lua/kanso/highlights/treesitter.lua", "local M = {}\n\n---@param colors KansoColors\n---@param config? KansoConfig\nfunction M.setup(colors, config)\n config = config or require(\"kanso\").config\n local theme = colors.theme\n return {\n -- @variable various variable names\n [\"@variable\"] = { fg = theme.ui.fg },\n -- @variable.builtin (Special) built-in variable names (e.g. `this`, `self`)\n [\"@variable.builtin\"] = { fg = theme.syn.special2, italic = config.italics },\n -- @variable.parameter parameters of a function\n [\"@variable.parameter\"] = { fg = theme.syn.parameter },\n -- @variable.parameter.builtin special parameters (e.g. `_`, `it`)\n -- @variable.member object and struct fields\n [\"@variable.member\"] = { fg = theme.syn.identifier },\n --\n -- @constant (Constant) constant identifiers\n -- @constant.builtin built-in constant values\n -- @constant.macro constants defined by the preprocessor\n --\n -- @module (Structure) modules or namespaces\n -- @module.builtin built-in modules or namespaces\n -- @label `GOTO` and other labels (e.g. `label:` in C), including heredoc labels\n --\n -- @string string literals\n -- @string.documentation string documenting code (e.g. Python docstrings)\n -- @string.regexp regular expressions\n [\"@string.regexp\"] = { fg = theme.syn.regex },\n -- @string.escape escape sequences\n [\"@string.escape\"] = { fg = theme.syn.regex },\n -- @string.special other special strings (e.g. dates)\n -- @string.special.symbol symbols or atoms\n [\"@string.special.symbol\"] = { fg = theme.syn.identifier },\n -- @string.special.path filenames\n -- @string.special.url (Underlined) URIs (e.g. hyperlinks)\n [\"@string.special.url\"] = { fg = theme.syn.special1, undercurl = true },\n -- @character character literals\n -- @character.special special characters (e.g. wildcards)\n --\n -- @boolean boolean literals\n -- @number numeric literals\n -- @number.float floating-point number literals\n --\n -- @type type or class definitions and annotations\n -- @type.builtin built-in types\n -- @type.definition identifiers in type definitions (e.g. `typedef ` in C)\n --\n -- @attribute attribute annotations (e.g. Python decorators, Rust lifetimes)\n [\"@attribute\"] = { link = \"Constant\" },\n -- @attribute.builtin builtin annotations (e.g. `@property` in Python)\n -- @property the key in key/value pairs\n --\n -- @function function definitions\n -- @function.builtin built-in functions\n -- @function.call function calls\n -- @function.macro preprocessor macros\n --\n -- @function.method method definitions\n -- @function.method.call method calls\n --\n -- @constructor constructor calls and definitions\n [\"@constructor\"] = { fg = theme.syn.special1 },\n [\"@constructor.lua\"] = { fg = theme.syn.keyword },\n -- @operator symbolic operators (e.g. `+`, `*`)\n [\"@operator\"] = { link = \"Operator\" },\n --\n -- @keyword keywords not fitting into specific categories\n -- @keyword.coroutine keywords related to coroutines (e.g. `go` in Go, `async/await` in Python)\n -- @keyword.function keywords that define a function (e.g. `func` in Go, `def` in Python)\n -- @keyword.operator operators that are English words (e.g. `and`, `or`)\n [\"@keyword.operator\"] = { fg = theme.syn.operator },\n -- @keyword.import keywords for including modules (e.g. `import`, `from` in Python)\n [\"@keyword.import\"] = { link = \"PreProc\" },\n -- @keyword.type keywords defining composite types (e.g. `struct`, `enum`)\n -- @keyword.modifier keywords defining type modifiers (e.g. `const`, `static`, `public`)\n -- @keyword.repeat keywords related to loops (e.g. `for`, `while`)\n -- @keyword.return keywords like `return` and `yield`\n [\"@keyword.return\"] = vim.tbl_extend(\n \"force\",\n { fg = theme.syn.special3 },\n not config.italics and {} or config.keywordStyle\n ),\n -- @keyword.debug keywords related to debugging\n -- @keyword.exception keywords related to exceptions (e.g. `throw`, `catch`)\n [\"@keyword.exception\"] = vim.tbl_extend(\"force\", { fg = theme.syn.special3 }, config.statementStyle),\n\n [\"@keyword.luap\"] = { link = \"@string.regex\" },\n --\n -- @keyword.conditional keywords related to conditionals (e.g. `if`, `else`)\n -- @keyword.conditional.ternary ternary operator (e.g. `?`, `:`)\n --\n -- @keyword.directive various preprocessor directives and shebangs\n -- @keyword.directive.define preprocessor definition directives\n --\n -- @punctuation.delimiter delimiters (e.g. `;`, `.`, `,`)\n [\"@punctuation.delimiter\"] = { fg = theme.syn.punct },\n -- @punctuation.bracket brackets (e.g. `()`, `{}`, `[]`)\n [\"@punctuation.bracket\"] = { fg = theme.syn.punct },\n -- @punctuation.special special symbols (e.g. `{}` in string interpolation)\n [\"@punctuation.special\"] = { fg = theme.syn.special1 },\n --\n -- @comment line and block comments\n -- @comment.documentation comments documenting code\n --\n -- @comment.error error-type comments (e.g. `ERROR`, `FIXME`, `DEPRECATED`)\n [\"@comment.error\"] = { fg = theme.ui.fg, bg = theme.diag.error, bold = config.bold },\n -- @comment.warning warning-type comments (e.g. `WARNING`, `FIX`, `HACK`)\n [\"@comment.warning\"] = { fg = theme.ui.fg_reverse, bg = theme.diag.warning, bold = config.bold },\n -- @comment.todo todo-type comments (e.g. `TODO`, `WIP`)\n -- @comment.note note-type comments (e.g. `NOTE`, `INFO`, `XXX`)\n [\"@comment.note\"] = { fg = theme.ui.fg_reverse, bg = theme.diag.hint, bold = config.bold },\n --\n -- @markup.strong bold text\n [\"@markup.strong\"] = { bold = config.bold },\n -- @markup.italic italic text\n [\"@markup.italic\"] = { italic = true },\n -- @markup.strikethrough struck-through text\n [\"@markup.strikethrough\"] = { strikethrough = true },\n -- @markup.underline underlined text (only for literal underline markup!)\n [\"@markup.underline\"] = { underline = true },\n --\n -- @markup.heading headings, titles (including markers)\n [\"@markup.heading\"] = { link = \"Function\" },\n -- @markup.heading.1 top-level heading\n -- @markup.heading.2 section heading\n -- @markup.heading.3 subsection heading\n -- @markup.heading.4 and so on\n -- @markup.heading.5 and so forth\n -- @markup.heading.6 six levels ought to be enough for anybody\n --\n -- @markup.quote block quotes\n [\"@markup.quote\"] = { link = \"@variable.parameter\" },\n -- @markup.math math environments (e.g. `$ ... $` in LaTeX)\n [\"@markup.math\"] = { link = \"Constant\" },\n -- @markup.environment environments (e.g. in LaTeX)\n [\"@markup.environment\"] = { link = \"Keyword\" },\n --\n -- @markup.link text references, footnotes, citations, etc.\n -- @markup.link.label link, reference descriptions\n -- @markup.link.url URL-style links\n [\"@markup.link.url\"] = { link = \"@string.special.url\" },\n -- @markup.raw literal or verbatim text (e.g. inline code)\n [\"@markup.raw\"] = { link = \"String\" },\n -- @markup.raw.block literal or verbatim text as a stand-alone block\n --\n -- @markup.list list markers\n -- @markup.list.checked checked todo-style list markers\n -- @markup.list.unchecked unchecked todo-style list markers\n --\n -- @diff.plus added text (for diff files)\n [\"@diff.plus\"] = { fg = theme.vcs.added },\n -- @diff.minus deleted text (for diff files)\n [\"@diff.minus\"] = { fg = theme.vcs.removed },\n -- @diff.delta changed text (for diff files)\n [\"@diff.delta\"] = { fg = theme.vcs.changed },\n --\n -- @tag XML-style tag names (e.g. in XML, HTML, etc.)\n -- @tag.builtin XML-style tag names (e.g. HTML5 tags)\n -- @tag.attribute XML-style tag attributes\n [\"@tag.attribute\"] = { fg = theme.syn.identifier },\n -- @tag.delimiter XML-style tag delimiters\n [\"@tag.delimiter\"] = { fg = theme.syn.punct },\n }\nend\n\nreturn M\n--vim: fdm=marker\n"], ["/kanso.nvim/lua/lualine/themes/kanso.lua", "local theme = require(\"kanso.colors\").setup().theme\n\nlocal kanso = {}\n\nkanso.normal = {\n a = { bg = theme.ui.fg, fg = theme.ui.bg },\n b = { bg = theme.ui.none, fg = theme.ui.fg },\n c = { bg = theme.ui.none, fg = theme.ui.fg },\n}\n\nkanso.insert = {\n a = { bg = theme.diag.ok, fg = theme.ui.bg },\n b = { bg = theme.ui.none, fg = theme.diag.ok },\n}\n\nkanso.command = {\n a = { bg = theme.syn.operator, fg = theme.ui.bg },\n b = { bg = theme.ui.none, fg = theme.syn.operator },\n}\n\nkanso.visual = {\n a = { bg = theme.syn.keyword, fg = theme.ui.bg },\n b = { bg = theme.ui.none, fg = theme.syn.keyword },\n}\n\nkanso.replace = {\n a = { bg = theme.syn.constant, fg = theme.ui.bg },\n b = { bg = theme.ui.none, fg = theme.syn.constant },\n}\n\nkanso.inactive = {\n a = { bg = theme.ui.none, fg = theme.ui.fg_dim },\n b = { bg = theme.ui.none, fg = theme.ui.fg_dim },\n c = { bg = theme.ui.none, fg = theme.ui.fg_dim },\n}\n\nif vim.g.kanso_lualine_bold then\n for _, mode in pairs(kanso) do\n mode.a.gui = \"bold\"\n end\nend\n\nreturn kanso\n"], ["/kanso.nvim/lua/kanso/highlights/lsp.lua", "local M = {}\n---@param colors KansoColors\n---@param config? KansoConfig\nfunction M.setup(colors, config)\n config = config or require(\"kanso\").config\n local theme = colors.theme\n return {\n -- [\"@lsp.type.class\"] = { link = \"Structure\" },\n -- [\"@lsp.type.decorator\"] = { link = \"Function\" },\n -- [\"@lsp.type.enum\"] = { link = \"Structure\" },\n -- [\"@lsp.type.enumMember\"] = { link = \"Constant\" },\n -- [\"@lsp.type.function\"] = { link = \"Function\" },\n -- [\"@lsp.type.interface\"] = { link = \"Structure\" },\n [\"@lsp.type.macro\"] = { link = \"Macro\" },\n [\"@lsp.type.method\"] = { link = \"@function.method\" }, -- Function\n [\"@lsp.type.namespace\"] = { link = \"@module\" }, -- Structure\n [\"@lsp.type.parameter\"] = { link = \"@variable.parameter\" }, -- Identifier\n -- [\"@lsp.type.property\"] = { link = \"Identifier\" },\n -- [\"@lsp.type.struct\"] = { link = \"Structure\" },\n -- [\"@lsp.type.type\"] = { link = \"Type\" },\n -- [\"@lsp.type.typeParameter\"] = { link = \"TypeDef\" },\n [\"@lsp.type.variable\"] = { fg = \"none\" }, -- Identifier\n [\"@lsp.type.comment\"] = { link = \"Comment\" }, -- Comment\n\n [\"@lsp.type.const\"] = { link = \"Constant\" },\n [\"@lsp.type.comparison\"] = { link = \"Operator\" },\n [\"@lsp.type.bitwise\"] = { link = \"Operator\" },\n [\"@lsp.type.punctuation\"] = { link = \"Delimiter\" },\n\n [\"@lsp.type.selfParameter\"] = { link = \"@variable.builtin\" },\n -- [\"@lsp.type.builtinConstant\"] = { link = \"@constant.builtin\" },\n [\"@lsp.type.builtinConstant\"] = { link = \"@constant.builtin\" },\n [\"@lsp.type.magicFunction\"] = { link = \"@function.builtin\" },\n\n [\"@lsp.mod.readonly\"] = { link = \"Constant\" },\n [\"@lsp.mod.typeHint\"] = { link = \"Type\" },\n -- [\"@lsp.mod.defaultLibrary\"] = { link = \"Special\" },\n -- [\"@lsp.mod.builtin\"] = { link = \"Special\" },\n\n [\"@lsp.typemod.operator.controlFlow\"] = { link = \"@keyword.exception\" }, -- rust ? operator\n [\"@lsp.type.lifetime\"] = { link = \"Operator\" },\n [\"@lsp.typemod.keyword.documentation\"] = { link = \"Special\" },\n [\"@lsp.type.decorator.rust\"] = { link = \"PreProc\" },\n\n [\"@lsp.typemod.variable.global\"] = { link = \"Constant\" },\n [\"@lsp.typemod.variable.static\"] = { link = \"Constant\" },\n [\"@lsp.typemod.variable.defaultLibrary\"] = { link = \"Special\" },\n\n [\"@lsp.typemod.function.builtin\"] = { link = \"@function.builtin\" },\n [\"@lsp.typemod.function.defaultLibrary\"] = { link = \"@function.builtin\" },\n [\"@lsp.typemod.method.defaultLibrary\"] = { link = \"@function.builtin\" },\n\n [\"@lsp.typemod.variable.injected\"] = { link = \"@variable\" },\n\n [\"@lsp.typemod.function.readonly\"] = { fg = theme.syn.fun, bold = config.bold },\n }\nend\n\nreturn M\n--vim: fdm=marker\n"], ["/kanso.nvim/lua/kanso/themes.lua", "--TODO:\n--PreProc needs its own color\n--parameter and field should be different\n---@class SyntaxElements\n---@field string ColorSpec\n---@field variable ColorSpec\n---@field number ColorSpec\n---@field constant ColorSpec\n---@field identifier ColorSpec\n---@field parameter ColorSpec\n---@field fun ColorSpec\n---@field statement ColorSpec\n---@field keyword ColorSpec\n---@field operator ColorSpec\n---@field preproc ColorSpec\n---@field type ColorSpec\n---@field regex ColorSpec\n---@field deprecated ColorSpec\n---@field comment ColorSpec\n---@field punct ColorSpec\n---@field special1 ColorSpec\n---@field special2 ColorSpec\n---@field special3 ColorSpec\n\n---@class DiagnosticsElements\n---@field error ColorSpec\n---@field ok ColorSpec\n---@field warning ColorSpec\n---@field info ColorSpec\n---@field hint ColorSpec\n--\n---@class DiffElements\n---@field add ColorSpec\n---@field delete ColorSpec\n---@field change ColorSpec\n---@field text ColorSpec\n\n---@class VCSElements\n---@field added ColorSpec\n---@field removed ColorSpec\n---@field changed ColorSpec\n---@field untracked ColorSpec\n\n---@class UiElements\n---@field none ColorSpec\n---@field fg ColorSpec Default foreground\n---@field fg_dim ColorSpec Dimmed foreground\n---@field fg_reverse ColorSpec\n---@field bg_dim ColorSpec Dimmed background\n---@field bg_m3 ColorSpec\n---@field bg_m2 ColorSpec\n---@field bg_m1 ColorSpec\n---@field bg ColorSpec Default background\n---@field bg_p1 ColorSpec Lighter background ColorColumn, Folded, Gutter\n---@field bg_p2 ColorSpec Lighter background Cursor{Line,Column}, TabLineSel (Selected Items)\n---@field bg_gutter ColorSpec {Sign,Fold}Column, LineNr\n---@field special ColorSpec SpecialKey\n---@field indent_line ColorSpec IndentLine\n---@field active_indent_line ColorSpec IndentLine\n---@field nontext ColorSpec LineNr, NonText\n---@field whitespace ColorSpec Whitespace\n---@field bg_search ColorSpec\n---@field bg_visual ColorSpec\n---@field cursor_line_nr_foreground ColorSpec\n---@field cursor_line_nr_active_foreground ColorSpec\n---@field cursor_bg ColorSpec\n---@field cursor_fg ColorSpec\n---@field pmenu MenuElements\n---@field float FloatElements\n\n---@class FloatElements\n---@field fg ColorSpec\n---@field bg ColorSpec\n---@field fg_border ColorSpec\n---@field bg_border ColorSpec\n\n---@class MenuElements\n---@field bg ColorSpec\n---@field fg ColorSpec\n---@field fg_sel ColorSpec\n---@field bg_sel ColorSpec\n---@field bg_sbar ColorSpec\n---@field bg_thumb ColorSpec\n\n---@class ThemeColors\n---@field syn SyntaxElements\n---@field diag DiagnosticsElements\n---@field vcs VCSElements\n---@field diff DiffElements\n---@field ui UiElements\n---@field term ColorSpec[]\n\nreturn {\n ---@param palette PaletteColors\n ---@param foreground? \"default\"|\"contrast\"\n ---@return ThemeColors\n zen = function(palette, foreground)\n return {\n ui = {\n none = \"NONE\",\n fg = palette.fg,\n fg_dim = palette.gray2,\n fg_reverse = palette.altBlue1,\n\n bg_dim = palette.zenBg0,\n\n bg_m3 = palette.zenBg0,\n bg_m2 = palette.zenBg0,\n bg_m1 = palette.zenBg0,\n bg = palette.zenBg0,\n bg_p1 = palette.zenBg1,\n bg_p2 = palette.zenBg2,\n\n special = palette.gray5,\n indent_line = palette.inkBg2,\n active_indent_line = palette.inkBg3,\n whitespace = palette.inkBg3,\n nontext = palette.gray5,\n\n bg_visual = palette.inkBg3,\n bg_search = palette.altBlue2,\n\n cursor_line_nr_foreground = palette.gray5,\n cursor_line_nr_active_foreground = palette.fg2,\n cursor_bg = palette.fg2,\n cursor_fg = palette.zenBg0,\n\n pmenu = {\n fg = palette.fg2,\n fg_sel = \"NONE\",\n bg = palette.zenBg0,\n bg_sel = palette.inkBg3,\n bg_thumb = palette.inkBg3,\n bg_sbar = palette.zenBg0,\n },\n\n float = {\n fg = palette.gray2,\n bg = palette.zenBg0,\n fg_border = palette.zenBg2,\n bg_border = palette.zenBg0,\n },\n },\n syn = {\n string = foreground == \"contrast\" and palette.green3Contrast or palette.green3,\n variable = \"NONE\",\n number = foreground == \"contrast\" and palette.pinkContrast or palette.pink,\n constant = foreground == \"contrast\" and palette.orangeContrast or palette.orange,\n identifier = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n parameter = palette.gray3,\n fun = foreground == \"contrast\" and palette.blue3Contrast or palette.blue3,\n statement = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n keyword = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n operator = palette.gray3,\n preproc = palette.gray3,\n type = foreground == \"contrast\" and palette.aquaContrast or palette.aqua,\n regex = foreground == \"contrast\" and palette.red3Contrast or palette.red3,\n deprecated = palette.gray,\n punct = palette.gray3,\n comment = palette.gray4,\n special1 = foreground == \"contrast\" and palette.yellow3Contrast or palette.yellow3,\n special2 = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n special3 = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n },\n diag = {\n error = palette.red,\n ok = palette.green,\n warning = palette.yellow,\n info = palette.blue2,\n hint = palette.green4,\n },\n diff = {\n add = palette.diffGreen,\n delete = palette.diffRed,\n change = palette.diffBlue,\n text = palette.diffYellow,\n },\n vcs = {\n added = palette.gitGreen,\n removed = palette.gitRed,\n changed = palette.gitYellow,\n untracked = palette.gray4,\n },\n term = {\n palette.zenBg0, -- black\n palette.red3, -- red\n palette.green3, -- green\n palette.yellow3, -- yellow\n palette.blue3, -- blue\n palette.pink, -- magenta\n palette.fg, -- cyan\n palette.gray2, -- white\n palette.gray3, -- bright black\n palette.red2, -- bright red\n palette.green2, -- bright green\n palette.yellow2, -- bright yellow\n palette.blue, -- bright blue\n palette.violet, -- bright magenta\n palette.green5, -- bright cyan\n palette.fg, -- bright white\n palette.orange, -- extended color 1\n palette.orange2, -- extended color 2\n },\n }\n end,\n ---@param palette PaletteColors\n ---@param foreground? \"default\"|\"contrast\"\n ---@return ThemeColors\n ink = function(palette, foreground)\n return {\n ui = {\n none = \"NONE\",\n fg = palette.fg,\n fg_dim = palette.gray2,\n fg_reverse = palette.altBlue1,\n\n bg_dim = palette.inkBg0,\n\n bg_m3 = palette.inkBg0,\n bg_m2 = palette.inkBg0,\n bg_m1 = palette.inkBg0,\n bg = palette.inkBg0,\n bg_p1 = palette.inkBg1,\n bg_p2 = palette.inkBg2,\n\n special = palette.gray5,\n indent_line = palette.inkBg2,\n active_indent_line = palette.inkBg3,\n whitespace = palette.inkBg4,\n nontext = palette.gray5,\n\n bg_visual = palette.inkBg3,\n bg_search = palette.altBlue2,\n\n cursor_line_nr_foreground = palette.gray5,\n cursor_line_nr_active_foreground = palette.fg2,\n cursor_bg = palette.fg2,\n cursor_fg = palette.inkBg0,\n\n pmenu = {\n fg = palette.fg2,\n fg_sel = \"NONE\",\n bg = palette.inkBg0,\n bg_sel = palette.inkBg3,\n bg_thumb = palette.inkBg3,\n bg_sbar = palette.inkBg0,\n },\n\n float = {\n fg = palette.gray2,\n bg = palette.inkBg0,\n fg_border = palette.inkBg2,\n bg_border = palette.inkBg0,\n },\n },\n syn = {\n string = foreground == \"contrast\" and palette.green3Contrast or palette.green3,\n variable = \"NONE\",\n number = foreground == \"contrast\" and palette.pinkContrast or palette.pink,\n constant = foreground == \"contrast\" and palette.orangeContrast or palette.orange,\n identifier = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n parameter = palette.gray3,\n fun = foreground == \"contrast\" and palette.blue3Contrast or palette.blue3,\n statement = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n keyword = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n operator = palette.gray3,\n preproc = palette.gray3,\n type = foreground == \"contrast\" and palette.aquaContrast or palette.aqua,\n regex = foreground == \"contrast\" and palette.red3Contrast or palette.red3,\n deprecated = palette.gray,\n punct = palette.gray3,\n comment = palette.gray4,\n special1 = foreground == \"contrast\" and palette.yellow3Contrast or palette.yellow3,\n special2 = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n special3 = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n },\n diag = {\n error = palette.red,\n ok = palette.green,\n warning = palette.yellow,\n info = palette.blue2,\n hint = palette.green4,\n },\n diff = {\n add = palette.diffGreen,\n delete = palette.diffRed,\n change = palette.diffBlue,\n text = palette.diffYellow,\n },\n vcs = {\n added = palette.gitGreen,\n removed = palette.gitRed,\n changed = palette.gitYellow,\n untracked = palette.gray4,\n },\n term = {\n palette.inkBg0, -- black\n palette.red3, -- red\n palette.green3, -- green\n palette.yellow3, -- yellow\n palette.blue3, -- blue\n palette.pink, -- magenta\n palette.fg, -- cyan\n palette.gray2, -- white\n palette.gray3, -- bright black\n palette.red2, -- bright red\n palette.green2, -- bright green\n palette.yellow2, -- bright yellow\n palette.blue, -- bright blue\n palette.violet, -- bright magenta\n palette.green5, -- bright cyan\n palette.fg, -- bright white\n palette.orange, -- extended color 1\n palette.orange2, -- extended color 2\n },\n }\n end,\n ---@param palette PaletteColors\n ---@param foreground? \"default\"|\"contrast\"\n ---@return ThemeColors\n pearl = function(palette, foreground)\n return {\n ui = {\n none = \"NONE\",\n fg = palette.pearlBlack0,\n fg_dim = palette.pearlBlack1,\n fg_reverse = palette.pearlGray,\n\n bg_dim = palette.pearlWhite0,\n\n bg_m3 = palette.pearlWhite0,\n bg_m2 = palette.pearlWhite0,\n bg_m1 = palette.pearlWhite0,\n bg = palette.pearlWhite0,\n bg_p1 = palette.pearlWhite1,\n bg_p2 = palette.pearlWhite1,\n\n nontext = palette.pearlViolet1,\n whitespace = palette.pearlWhite3,\n special = palette.pearlViolet2,\n indent_line = palette.pearlWhite2,\n active_indent_line = palette.pearlWhite2,\n\n bg_visual = palette.pearlWhite2,\n bg_search = palette.pearlBlue2,\n\n cursor_line_nr_foreground = palette.pearlGray4,\n cursor_line_nr_active_foreground = palette.inkBg2,\n cursor_bg = palette.fg2,\n cursor_fg = palette.inkBg2,\n\n pmenu = {\n fg = palette.pearlBlack2,\n fg_sel = \"NONE\", -- This is important to make highlights pass-through\n bg = palette.pearlWhite0,\n bg_sel = palette.pearlWhite2,\n bg_thumb = palette.pearlWhite2,\n bg_sbar = palette.pearlWhite0,\n },\n float = {\n fg = palette.pearlBlack2,\n bg = palette.pearlWhite0,\n fg_border = palette.pearlWhite2,\n bg_border = palette.pearlWhite0,\n },\n },\n syn = {\n string = foreground == \"contrast\" and palette.pearlGreenContrast or palette.pearlGreen,\n variable = \"NONE\",\n number = foreground == \"contrast\" and palette.pearlPinkContrast or palette.pearlPink,\n constant = foreground == \"contrast\" and palette.pearlOrangeContrast or palette.pearlOrange,\n identifier = foreground == \"contrast\" and palette.pearlViolet4Contrast or palette.pearlViolet4,\n parameter = foreground == \"contrast\" and palette.pearlBlue5Contrast or palette.pearlBlue5,\n fun = foreground == \"contrast\" and palette.pearlBlue4Contrast or palette.pearlBlue4,\n statement = foreground == \"contrast\" and palette.pearlViolet4Contrast or palette.pearlViolet4,\n keyword = foreground == \"contrast\" and palette.pearlViolet4Contrast or palette.pearlViolet4,\n operator = palette.pearlGray3,\n preproc = palette.pearlGray2,\n type = foreground == \"contrast\" and palette.pearlAquaContrast or palette.pearlAqua,\n regex = foreground == \"contrast\" and palette.pearlYellow2Contrast or palette.pearlYellow2,\n deprecated = palette.pearlGray3,\n comment = palette.pearlGray3,\n punct = palette.pearlGray3,\n special1 = foreground == \"contrast\" and palette.pearlYellow2Contrast or palette.pearlYellow2,\n special2 = foreground == \"contrast\" and palette.pearlViolet4Contrast or palette.pearlViolet4,\n special3 = foreground == \"contrast\" and palette.pearlViolet4Contrast or palette.pearlViolet4,\n },\n vcs = {\n added = palette.pearlGreen2,\n removed = palette.pearlRed2,\n changed = palette.pearlYellow3,\n untracked = palette.pearlGray4,\n },\n diff = {\n add = palette.pearlGreen3,\n delete = palette.pearlRed4,\n change = palette.pearlCyan,\n text = palette.pearlYellow4,\n },\n diag = {\n error = palette.pearlRed3,\n ok = palette.pearlGreen,\n warning = palette.pearlOrange2,\n info = palette.pearlTeal3,\n hint = palette.pearlAqua2,\n },\n term = {\n palette.inkBg2, -- black\n palette.pearlRed, -- red\n palette.pearlGreen, -- green\n palette.pearlYellow, -- yellow\n palette.pearlBlue4, -- blue\n palette.pearlPink, -- magenta\n palette.pearlAqua, -- cyan\n palette.pearlBlack0, -- white\n palette.pearlGray3, -- bright black\n palette.pearlRed2, -- bright red\n palette.pearlGreen2, -- bright green\n palette.pearlYellow2, -- bright yellow\n palette.pearlTeal2, -- bright blue\n palette.pearlViolet4, -- bright magenta\n palette.pearlAqua2, -- bright cyan\n palette.pearlBlack2, -- bright white\n palette.pearlOrange2, -- extended color 1\n palette.pearlRed3, -- extended color 2\n },\n }\n end,\n ---@param palette PaletteColors\n ---@param foreground? \"default\"|\"contrast\"\n ---@return ThemeColors\n mist = function(palette, foreground)\n return {\n ui = {\n none = \"NONE\",\n fg = palette.fg,\n fg_dim = palette.gray2,\n fg_reverse = palette.altBlue1,\n\n bg_dim = palette.mistBg0,\n\n bg_m3 = palette.mistBg0,\n bg_m2 = palette.mistBg0,\n bg_m1 = palette.mistBg0,\n bg = palette.mistBg0,\n bg_p1 = palette.mistBg2,\n bg_p2 = palette.mistBg2,\n\n special = palette.gray5,\n indent_line = palette.gray5,\n active_indent_line = palette.gray5,\n whitespace = palette.mistBg3,\n nontext = palette.gray5,\n\n bg_visual = palette.mistBg2,\n bg_search = palette.altBlue2,\n\n cursor_line_nr_foreground = palette.gray4,\n cursor_line_nr_active_foreground = palette.fg2,\n cursor_bg = palette.fg2,\n cursor_fg = palette.mistBg0,\n\n pmenu = {\n fg = palette.fg2,\n fg_sel = \"NONE\",\n bg = palette.mistBg0,\n bg_sel = palette.mistBg2,\n bg_thumb = palette.mistBg2,\n bg_sbar = palette.mistBg0,\n },\n\n float = {\n fg = palette.gray2,\n bg = palette.mistBg0,\n fg_border = palette.mistBg2,\n bg_border = palette.mistBg0,\n },\n },\n syn = {\n string = foreground == \"contrast\" and palette.green3Contrast or palette.green3,\n variable = \"NONE\",\n number = foreground == \"contrast\" and palette.pinkContrast or palette.pink,\n constant = foreground == \"contrast\" and palette.orangeContrast or palette.orange,\n identifier = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n parameter = palette.gray3,\n fun = foreground == \"contrast\" and palette.blue3Contrast or palette.blue3,\n statement = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n keyword = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n operator = palette.gray3,\n preproc = palette.gray3,\n type = foreground == \"contrast\" and palette.aquaContrast or palette.aqua,\n regex = foreground == \"contrast\" and palette.red3Contrast or palette.red3,\n deprecated = palette.gray,\n punct = palette.gray3,\n comment = palette.gray4,\n special1 = foreground == \"contrast\" and palette.yellow3Contrast or palette.yellow3,\n special2 = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n special3 = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n },\n diag = {\n error = palette.red,\n ok = palette.green,\n warning = palette.yellow,\n info = palette.blue2,\n hint = palette.green4,\n },\n diff = {\n add = palette.diffGreen,\n delete = palette.diffRed,\n change = palette.diffBlue,\n text = palette.diffYellow,\n },\n vcs = {\n added = palette.gitGreen,\n removed = palette.gitRed,\n changed = palette.gitYellow,\n untracked = palette.gray4,\n },\n term = {\n palette.mistBg0, -- black\n palette.red3, -- red\n palette.green3, -- green\n palette.yellow3, -- yellow\n palette.blue3, -- blue\n palette.pink, -- magenta\n palette.fg, -- cyan\n palette.gray2, -- white\n palette.gray3, -- bright black\n palette.red2, -- bright red\n palette.green2, -- bright green\n palette.yellow2, -- bright yellow\n palette.blue, -- bright blue\n palette.violet, -- bright magenta\n palette.green5, -- bright cyan\n palette.fg, -- bright white\n palette.orange, -- extended color 1\n palette.orange2, -- extended color 2\n },\n }\n end,\n}\n"], ["/kanso.nvim/lua/kanso/highlights/plugins.lua", "local M = {}\n\n---@param colors KansoColors\n---@param config? KansoConfig\nfunction M.setup(colors, config)\n config = config or require(\"kanso\").config\n local theme = colors.theme\n\n return {\n -- Neovcs\n -- NeovcsBranch = {},\n -- NeovcsRemote = {},\n -- NeovcsDiffDelete = { fg = theme.vcs.removed, bg = theme.diff.delete },\n -- NeovcsDiffAdd = { fg = theme.vcs.added, bg = theme.diff.add },\n -- NeovcsHunkHeader = { fg = theme.syn.identifier },\n -- NeovcsDiffContextHighlight = { bg = theme.diff.change },\n\n -- vcsSigns\n -- vcsSignsAdd = { link = \"diffAdded\" },\n -- vcsSignsChange = { link = \"diffChanged\" },\n -- vcsSignsDelete = { link = \"diffDeleted\" },\n -- vcsSignsDeleteLn = { bg = theme.diff.delete },\n\n -- Gitsigns\n GitSignsAdd = { fg = theme.vcs.added, bg = theme.ui.none },\n GitSignsChange = { fg = theme.vcs.changed, bg = theme.ui.none },\n GitSignsDelete = { fg = theme.vcs.removed, bg = theme.ui.none },\n GitSignsChangedelete = { fg = theme.vcs.removed, bg = theme.ui.none },\n GitSignsTopdelete = { fg = theme.vcs.removed, bg = theme.ui.none },\n GitSignsUntracked = { fg = theme.vcs.untracked, bg = theme.ui.none },\n\n -- Neogit\n NeogitDiffContextHighlight = { bg = theme.diff.change }, --[[ guibg=#333333 guifg=#b2b2b2 ]]\n NeogitHunkHeader = { fg = theme.syn.fun }, --[[ guifg=#cccccc guibg=#404040 ]]\n NeogitHunkHeaderHighlight = { fg = theme.syn.constant, bg = theme.diff.change }, --[[ guifg=#cccccc guibg=#4d4d4d ]]\n NeogitDiffAddHighlight = { bg = theme.diff.add },\n NeogitDiffDeleteHighlight = { bg = theme.diff.delete },\n -- TreeSitter Extensions\n TreesitterContext = { link = \"Folded\" },\n TreesitterContextLineNumber = { fg = theme.ui.special, bg = theme.ui.none },\n -- Telescope\n TelescopeBorder = { fg = theme.ui.float.fg_border, bg = config.transparent and theme.ui.none or theme.ui.bg },\n TelescopeTitle = { fg = theme.ui.special },\n TelescopeSelection = { link = \"CursorLine\" },\n TelescopeSelectionCaret = { link = \"CursorLineNr\" },\n TelescopeResultsClass = { link = \"Structure\" },\n TelescopeResultsStruct = { link = \"Structure\" },\n TelescopeResultsField = { link = \"@field\" },\n TelescopeResultsMethod = { link = \"Function\" },\n TelescopeResultsVariable = { link = \"@variable\" },\n -- NvimTree\n NvimTreeNormal = { link = \"Normal\" },\n NvimTreeNormalNC = { link = \"NvimTreeNormal\" },\n NvimTreeRootFolder = { fg = theme.syn.identifier, bold = config.bold },\n NvimTreeGitDirty = { fg = theme.vcs.changed },\n NvimTreeGitNew = { fg = theme.vcs.added },\n NvimTreeGitDeleted = { fg = theme.vcs.removed },\n NvimTreeGitStaged = { fg = theme.vcs.added },\n NvimTreeSpecialFile = { fg = theme.syn.special1 },\n -- NvimTreeIndentMarker = {},\n NvimTreeImageFile = { fg = theme.syn.special2 },\n NvimTreeSymlink = { link = \"Type\" },\n NvimTreeFolderName = { link = \"Directory\" },\n NvimTreeExecFile = { fg = theme.syn.string, bold = config.bold },\n NvimTreeOpenedFile = { fg = theme.syn.special1, italic = config.italics },\n NvimTreeWinSeparator = { link = \"WinSeparator\" },\n NvimTreeWindowPicker = {\n bg = config.transparent and theme.ui.none or theme.ui.bg_m1,\n fg = theme.syn.special1,\n bold = config.bold,\n },\n -- NeoTree\n NeoTreeTabInactive = { fg = theme.ui.special, bg = config.transparent and theme.ui.none or theme.ui.bg },\n NeoTreeTabActive = {\n fg = theme.ui.fg_dim,\n bg = config.transparent and theme.ui.none or theme.ui.bg_p1,\n bold = config.bold,\n },\n NeoTreeTabSeparatorInactive = {\n fg = theme.ui.special,\n bg = config.transparent and theme.ui.none or theme.ui.bg,\n },\n NeoTreeTabSeparatorActive = {\n fg = theme.ui.fg_dim,\n bg = config.transparent and theme.ui.none or theme.ui.bg_p1,\n },\n NeoTreeRootName = { fg = theme.syn.identifier, bold = config.bold },\n NeoTreeModified = { link = \"String\" },\n NeoTreeNormal = { link = \"Normal\" },\n NeoTreeNormalNC = { link = \"Normal\" },\n NeoTreeTitleBar = { link = \"Title\" },\n NeoTreeDimText = { fg = theme.ui.fg_dim },\n NeoTreeGitModified = { fg = theme.vcs.changed },\n NeoTreeGitAdded = { fg = theme.vcs.added },\n NeoTreeGitDeleted = { fg = theme.vcs.removed },\n NeoTreeGitStaged = { fg = theme.vcs.added },\n NeoTreeGitConflict = { fg = theme.diag.error },\n NeoTreeGitUntracked = { link = \"NeoTreeGitModified\", default = true },\n NeoTreeGitUnstaged = { link = \"NeoTreeGitModified\", default = true },\n NeoTreeIndentMarker = { link = \"NonText\" },\n -- WindowPicker\n -- NvimWindowSwitch = { bg = theme.ui.bg_m3, fg = theme.diag.warning },\n -- NvimWindowSwitchNC = { link = \"NvimWindowSwitch\" },\n -- Dashboard\n DashboardShortCut = { fg = theme.syn.special1 },\n DashboardHeader = { fg = theme.vcs.removed },\n DashboardCenter = { fg = theme.syn.identifier },\n DashboardFooter = { fg = theme.syn.comment },\n DashboardDesc = { fg = theme.syn.identifier },\n DashboardKey = { fg = theme.syn.special1 },\n DashboardIcon = { fg = theme.ui.special },\n -- Notify\n NotifyBackground = { bg = config.transparent and theme.ui.none or theme.ui.bg },\n NotifyERRORBorder = { link = \"DiagnosticError\" },\n NotifyWARNBorder = { link = \"DiagnosticWarn\" },\n NotifyINFOBorder = { link = \"DiagnosticInfo\" },\n NotifyHINTBorder = { link = \"DiagnosticHint\" },\n NotifyDEBUGBorder = { link = \"Debug\" },\n NotifyTRACEBorder = { link = \"Comment\" },\n NotifyERRORIcon = { link = \"DiagnosticError\" },\n NotifyWARNIcon = { link = \"DiagnosticWarn\" },\n NotifyINFOIcon = { link = \"DiagnosticInfo\" },\n NotifyHINTIcon = { link = \"DiagnosticHint\" },\n NotifyDEBUGIcon = { link = \"Debug\" },\n NotifyTRACEIcon = { link = \"Comment\" },\n NotifyERRORTitle = { link = \"DiagnosticError\" },\n NotifyWARNTitle = { link = \"DiagnosticWarn\" },\n NotifyINFOTitle = { link = \"DiagnosticInfo\" },\n NotifyHINTTitle = { link = \"DiagnosticHint\" },\n NotifyDEBUGTitle = { link = \"Debug\" },\n NotifyTRACETitle = { link = \"Comment\" },\n -- Dap-UI\n -- DapUIVariable = { link = \"Normal\" },\n DapUIScope = { link = \"Special\" }, -- guifg=#00F1F5\"\n DapUIType = { link = \"Type\" }, -- guifg=#D484FF\"\n -- DapUIValue = { link = \"Normal\" },\n DapUIModifiedValue = { fg = theme.syn.special1, bold = config.bold }, -- guifg=#00F1F5 gui=bold\"\n DapUIDecoration = { fg = theme.ui.float.fg_border }, -- guifg=#00F1F5\"\n DapUIThread = { fg = theme.syn.identifier }, --guifg=#A9FF68\"\n DapUIStoppedThread = { fg = theme.syn.special1 }, --guifg=#00f1f5\"\n -- DapUIFrameName = { link = \"Normal\"},\n DapUISource = { fg = theme.syn.special2 }, -- guifg=#D484FF\"\n DapUILineNumber = { fg = theme.syn.special1 }, -- guifg=#00f1f5\"\n DapUIFloatBorder = { fg = theme.ui.float.fg_border }, -- guifg=#00F1F5\"\n DapUIWatchesEmpty = { fg = theme.diag.error }, -- guifg=#F70067\"\n DapUIWatchesValue = { fg = theme.syn.identifier }, -- guifg=#A9FF68\"\n DapUIWatchesError = { fg = theme.diag.error }, --guifg=#F70067\"\n DapUIBreakpointsPath = { link = \"Directory\" }, --guifg=#00F1F5\"\n DapUIBreakpointsInfo = { fg = theme.diag.info }, --guifg=#A9FF68\"\n DapUIBreakpointsCurrentLine = { fg = theme.syn.identifier, bold = config.bold }, --guifg=#A9FF68 gui=bold\"\n -- DapUIBreakpointsLine = {}, -- DapUILineNumber\"\n DapUIBreakpointsDisabledLine = { link = \"Comment\" }, --guifg=#424242\"\n -- DapUICurrentFrameName = {}, -- DapUIBreakpointsCurrentLine\"\n DapUIStepOver = { fg = theme.syn.special1 }, --guifg=#00f1f5\"\n DapUIStepInto = { fg = theme.syn.special1 }, --guifg=#00f1f5\"\n DapUIStepBack = { fg = theme.syn.special1 }, --guifg=#00f1f5\"\n DapUIStepOut = { fg = theme.syn.special1 }, --guifg=#00f1f5\"\n DapUIStop = { fg = theme.diag.error }, --guifg=#F70067\"\n DapUIPlayPause = { fg = theme.syn.string }, --guifg=#A9FF68\"\n DapUIRestart = { fg = theme.syn.string }, --guifg=#A9FF68\"\n DapUIUnavailable = { fg = theme.syn.comment }, --guifg=#424242\"\n -- Floaterm\n FloatermBorder = { fg = theme.ui.float.fg_border, bg = config.transparent and theme.ui.none or theme.ui.bg },\n -- NeoVim = {},\n healthError = { fg = theme.diag.error },\n healthSuccess = { fg = theme.diag.ok },\n healthWarning = { fg = theme.diag.warning },\n -- Cmp\n CmpDocumentation = { link = \"NormalFloat\" },\n CmpDocumentationBorder = { link = \"FloatBorder\" },\n CmpCompletion = { link = \"Pmenu\" },\n CmpCompletionSel = { link = \"PmenuSel\" },\n CmpCompletionBorder = { fg = theme.ui.bg_search, bg = theme.ui.pmenu.bg },\n CmpCompletionThumb = { link = \"PmenuThumb\" },\n CmpCompletionSbar = { link = \"PmenuSbar\" },\n CmpItemAbbr = { fg = theme.ui.pmenu.fg },\n CmpItemAbbrDeprecated = { fg = theme.syn.comment, strikethrough = true },\n CmpItemAbbrMatch = { fg = theme.syn.fun },\n CmpItemAbbrMatchFuzzy = { link = \"CmpItemAbbrMatch\" },\n CmpItemKindDefault = { fg = theme.ui.fg_dim },\n CmpItemMenu = { fg = theme.ui.fg_dim },\n CmpGhostText = { fg = theme.syn.comment },\n\n CmpItemKindText = { fg = theme.ui.fg },\n CmpItemKindMethod = { link = \"@function.method\" },\n CmpItemKindFunction = { link = \"Function\" },\n CmpItemKindConstructor = { link = \"@constructor\" },\n CmpItemKindField = { link = \"@variable.member\" },\n CmpItemKindVariable = { fg = theme.ui.fg_dim },\n CmpItemKindClass = { link = \"Type\" },\n CmpItemKindInterface = { link = \"Type\" },\n CmpItemKindModule = { link = \"@module\" },\n CmpItemKindProperty = { link = \"@property\" },\n CmpItemKindUnit = { link = \"Number\" },\n CmpItemKindValue = { link = \"String\" },\n CmpItemKindEnum = { link = \"Type\" },\n CmpItemKindKeyword = { link = \"Keyword\" },\n CmpItemKindSnippet = { link = \"Special\" },\n CmpItemKindColor = { link = \"Special\" },\n CmpItemKindFile = { link = \"Directory\" },\n CmpItemKindReference = { link = \"Special\" },\n CmpItemKindFolder = { link = \"Directory\" },\n CmpItemKindEnumMember = { link = \"Constant\" },\n CmpItemKindConstant = { link = \"Constant\" },\n CmpItemKindStruct = { link = \"Type\" },\n CmpItemKindEvent = { link = \"Type\" },\n CmpItemKindOperator = { link = \"Operator\" },\n CmpItemKindTypeParameter = { link = \"Type\" },\n CmpItemKindCopilot = { link = \"String\" },\n\n -- blink.cmp\n BlinkCmpMenu = { link = \"Pmenu\" },\n BlinkCmpMenuSelection = { link = \"PmenuSel\" },\n BlinkCmpMenuBorder = { fg = theme.ui.bg_search, bg = theme.ui.pmenu.bg },\n BlinkCmpScrollBarThumb = { link = \"PmenuThumb\" },\n BlinkCmpScrollBarGutter = { link = \"PmenuSbar\" },\n BlinkCmpLabel = { fg = theme.ui.pmenu.fg },\n BlinkCmpLabelMatch = { fg = theme.syn.fun },\n BlinkCmpLabelDetails = { fg = theme.syn.comment },\n BlinkCmpLabelDeprecated = { fg = theme.syn.comment, strikethrough = true },\n BlinkCmpGhostText = { fg = theme.syn.comment },\n BlinkCmpDoc = { link = \"NormalFloat\" },\n BlinkCmpDocBorder = { link = \"FloatBorder\" },\n BlinkCmpDocCursorLine = { link = \"Visual\" },\n BlinkCmpSignatureHelp = { link = \"NormalFloat\" },\n BlinkCmpSignatureHelpBorder = { link = \"FloatBorder\" },\n BlinkCmpSignatureHelpActiveParameter = { link = \"LspSignatureActiveParameter\" },\n\n BlinkCmpKind = { fg = theme.ui.fg_dim },\n BlinkCmpKindText = { fg = theme.ui.fg },\n BlinkCmpKindMethod = { link = \"@function.method\" },\n BlinkCmpKindFunction = { link = \"Function\" },\n BlinkCmpKindConstructor = { link = \"@constructor\" },\n BlinkCmpKindField = { link = \"@variable.member\" },\n BlinkCmpKindVariable = { fg = theme.ui.fg_dim },\n BlinkCmpKindClass = { link = \"Type\" },\n BlinkCmpKindInterface = { link = \"Type\" },\n BlinkCmpKindModule = { link = \"@module\" },\n BlinkCmpKindProperty = { link = \"@property\" },\n BlinkCmpKindUnit = { link = \"Number\" },\n BlinkCmpKindValue = { link = \"String\" },\n BlinkCmpKindEnum = { link = \"Type\" },\n BlinkCmpKindKeyword = { link = \"Keyword\" },\n BlinkCmpKindSnippet = { link = \"Special\" },\n BlinkCmpKindColor = { link = \"Special\" },\n BlinkCmpKindFile = { link = \"Directory\" },\n BlinkCmpKindReference = { link = \"Special\" },\n BlinkCmpKindFolder = { link = \"Directory\" },\n BlinkCmpKindEnumMember = { link = \"Constant\" },\n BlinkCmpKindConstant = { link = \"Constant\" },\n BlinkCmpKindStruct = { link = \"Type\" },\n BlinkCmpKindEvent = { link = \"Type\" },\n BlinkCmpKindOperator = { link = \"Operator\" },\n BlinkCmpKindTypeParameter = { link = \"Type\" },\n BlinkCmpKindCopilot = { link = \"String\" },\n\n -- IndentBlankline\n IndentBlanklineChar = { fg = theme.ui.indent_line, nocombine = true },\n IndentBlanklineSpaceChar = { fg = theme.ui.indent_line, nocombine = true },\n IndentBlanklineSpaceCharBlankline = { fg = theme.ui.indent_line, nocombine = true },\n IndentBlanklineContextChar = { fg = theme.ui.active_indent_line, nocombine = true },\n IndentBlanklineContextStart = { sp = theme.ui.active_indent_line, underline = true, nocombine = true },\n IblIndent = { fg = theme.ui.indent_line, nocombine = true },\n IblWhitespace = { fg = theme.ui.indent_line, nocombine = true },\n IblScope = { fg = theme.ui.active_indent_line, nocombine = true },\n -- Other indent plugins\n IndentLine = { fg = theme.ui.indent_line, nocombine = true },\n Indent = { fg = theme.ui.indent_line, nocombine = true },\n IndentGuide = { fg = theme.ui.indent_line, nocombine = true },\n IndentGuidesOdd = { fg = theme.ui.indent_line, nocombine = true },\n IndentGuidesEven = { fg = theme.ui.indent_line, nocombine = true },\n -- Lazy\n LazyProgressTodo = { fg = theme.ui.nontext },\n\n -- Trouble\n TroubleIndent = { fg = theme.ui.whitespace },\n TroublePos = { fg = theme.ui.special },\n\n -- Nvim-Navic\n NavicIconsFile = { link = \"Directory\" },\n NavicIconsModule = { link = \"@module\" },\n NavicIconsNamespace = { link = \"@module\" },\n NavicIconsPackage = { link = \"@module\" },\n NavicIconsClass = { link = \"Type\" },\n NavicIconsMethod = { link = \"@function.method\" },\n NavicIconsProperty = { link = \"@property\" },\n NavicIconsField = { link = \"@variable.member\" },\n NavicIconsConstructor = { link = \"@constructor\" },\n NavicIconsEnum = { link = \"Type\" },\n NavicIconsInterface = { link = \"Type\" },\n NavicIconsFunction = { link = \"Function\" },\n NavicIconsVariable = { link = \"@variable\" },\n NavicIconsConstant = { link = \"Constant\" },\n NavicIconsString = { link = \"String\" },\n NavicIconsNumber = { link = \"Number\" },\n NavicIconsBoolean = { link = \"Boolean\" },\n NavicIconsArray = { link = \"Type\" },\n NavicIconsObject = { link = \"Type\" },\n NavicIconsKey = { link = \"Identifier\" },\n NavicIconsNull = { link = \"Type\" },\n NavicIconsEnumMember = { link = \"Constant\" },\n NavicIconsStruct = { link = \"Structure\" },\n NavicIconsEvent = { link = \"Structure\" },\n NavicIconsOperator = { link = \"Operator\" },\n NavicIconsTypeParameter = { link = \"Type\" },\n NavicText = { fg = theme.ui.fg },\n NavicSeparator = { fg = theme.ui.fg },\n\n -- Aerial icons\n AerialFileIcon = { link = \"Directory\" },\n AerialModuleIcon = { link = \"@module\" },\n AerialNamespaceIcon = { link = \"@module\" },\n AerialPackageIcon = { link = \"@module\" },\n AerialClassIcon = { link = \"Type\" },\n AerialMethodIcon = { link = \"@function.method\" },\n AerialPropertyIcon = { link = \"@property\" },\n AerialFieldIcon = { link = \"@variable.member\" },\n AerialConstructorIcon = { link = \"@constructor\" },\n AerialEnumIcon = { link = \"Type\" },\n AerialInterfaceIcon = { link = \"Type\" },\n AerialFunctionIcon = { link = \"Function\" },\n AerialVariableIcon = { link = \"@variable\" },\n AerialConstantIcon = { link = \"Constant\" },\n AerialStringIcon = { link = \"String\" },\n AerialNumberIcon = { link = \"Number\" },\n AerialBooleanIcon = { link = \"Boolean\" },\n AerialArrayIcon = { link = \"Type\" },\n AerialObjectIcon = { link = \"Type\" },\n AerialKeyIcon = { link = \"Identifier\" },\n AerialNullIcon = { link = \"Type\" },\n AerialEnumMemberIcon = { link = \"Constant\" },\n AerialStructIcon = { link = \"Structure\" },\n AerialEventIcon = { link = \"Structure\" },\n AerialOperatorIcon = { link = \"Operator\" },\n AerialTypeParameterIcon = { link = \"Type\" },\n\n -- Mini\n MiniAnimateCursor = { reverse = true, nocombine = true },\n MiniAnimateNormalFloat = { link = \"NormalFloat\" },\n\n MiniClueBorder = { link = \"FloatBorder\" },\n MiniClueDescGroup = { link = \"DiagnosticFloatingWarn\" },\n MiniClueDescSingle = { link = \"NormalFloat\" },\n MiniClueNextKey = { link = \"DiagnosticFloatingHint\" },\n MiniClueNextKeyWithPostkeys = { link = \"DiagnosticFloatingError\" },\n MiniClueSeparator = { link = \"DiagnosticFloatingInfo\" },\n MiniClueTitle = { link = \"FloatTitle\" },\n\n MiniCompletionActiveParameter = { underline = true },\n\n MiniCursorword = { underline = true },\n MiniCursorwordCurrent = { underline = true },\n\n MiniDepsChangeAdded = { link = \"diffAdded\" },\n MiniDepsChangeRemoved = { link = \"diffRemoved\" },\n MiniDepsHint = { fg = theme.diag.hint },\n MiniDepsInfo = { fg = theme.diag.info },\n MiniDepsMsgBreaking = { fg = theme.diag.warning },\n MiniDepsPlaceholder = { link = \"Comment\" },\n MiniDepsTitle = { link = \"Title\" },\n MiniDepsTitleError = { link = \"DiffDelete\" },\n MiniDepsTitleSame = { link = \"DiffText\" },\n MiniDepsTitleUpdate = { link = \"DiffAdd\" },\n\n MiniDiffSignAdd = { fg = theme.vcs.added, bg = theme.ui.none },\n MiniDiffSignChange = { fg = theme.vcs.changed, bg = theme.ui.none },\n MiniDiffSignDelete = { fg = theme.vcs.removed, bg = theme.ui.none },\n MiniDiffOverAdd = { link = \"DiffAdd\" },\n MiniDiffOverChange = { link = \"DiffText\" },\n MiniDiffOverContext = { link = \"DiffChange\" },\n MiniDiffOverDelete = { link = \"DiffDelete\" },\n\n MiniFilesBorder = { link = \"FloatBorder\" },\n MiniFilesBorderModified = { link = \"DiagnosticFloatingWarn\" },\n MiniFilesCursorLine = { link = \"CursorLine\" },\n MiniFilesDirectory = { link = \"Directory\" },\n MiniFilesFile = { fg = theme.ui.fg },\n MiniFilesNormal = { link = \"NormalFloat\" },\n MiniFilesTitle = {\n fg = theme.ui.special,\n bg = config.transparent and theme.ui.none or theme.ui.float.bg_border,\n bold = config.bold,\n },\n MiniFilesTitleFocused = {\n fg = theme.ui.fg,\n bg = config.transparent and theme.ui.none or theme.ui.float.bg_border,\n bold = config.bold,\n },\n\n MiniHipatternsFixme = { fg = theme.ui.bg, bg = theme.diag.error, bold = config.bold },\n MiniHipatternsHack = { fg = theme.ui.bg, bg = theme.diag.warning, bold = config.bold },\n MiniHipatternsNote = { fg = theme.ui.bg, bg = theme.diag.info, bold = config.bold },\n MiniHipatternsTodo = { fg = theme.ui.bg, bg = theme.diag.hint, bold = config.bold },\n\n MiniIconsAzure = { fg = theme.syn.special1 },\n MiniIconsBlue = { fg = theme.syn.fun },\n MiniIconsCyan = { fg = theme.syn.type },\n MiniIconsGreen = { fg = theme.syn.string },\n MiniIconsGrey = { fg = theme.ui.fg },\n MiniIconsOrange = { fg = theme.syn.constant },\n MiniIconsPurple = { fg = theme.syn.keyword },\n MiniIconsRed = { fg = theme.syn.special3 },\n MiniIconsYellow = { fg = theme.syn.identifier },\n\n MiniIndentscopeSymbol = { fg = theme.syn.special1 },\n MiniIndentscopePrefix = { nocombine = true }, -- Make it invisible\n\n MiniJump = { link = \"SpellRare\" },\n\n MiniJump2dDim = { link = \"Comment\" },\n MiniJump2dSpot = { fg = theme.syn.constant, bold = config.bold, nocombine = true },\n MiniJump2dSpotAhead = { fg = theme.diag.hint, bg = theme.ui.bg_dim, nocombine = true },\n MiniJump2dSpotUnique = { fg = theme.syn.special1, bold = config.bold, nocombine = true },\n\n MiniMapNormal = { link = \"NormalFloat\" },\n MiniMapSymbolCount = { link = \"Special\" },\n MiniMapSymbolLine = { link = \"Title\" },\n MiniMapSymbolView = { link = \"Delimiter\" },\n\n MiniNotifyBorder = { link = \"FloatBorder\" },\n MiniNotifyNormal = { link = \"NormalFloat\" },\n MiniNotifyTitle = { link = \"FloatTitle\" },\n\n MiniOperatorsExchangeFrom = { link = \"IncSearch\" },\n\n MiniPickBorder = { link = \"FloatBorder\" },\n MiniPickBorderBusy = { link = \"DiagnosticFloatingWarn\" },\n MiniPickBorderText = { link = \"FloatTitle\" },\n MiniPickIconDirectory = { link = \"Directory\" },\n MiniPickIconFile = { link = \"MiniPickNormal\" },\n MiniPickHeader = { link = \"DiagnosticFloatingHint\" },\n MiniPickMatchCurrent = { link = \"CursorLine\" },\n MiniPickMatchMarked = { link = \"Visual\" },\n MiniPickMatchRanges = { link = \"DiagnosticFloatingHint\" },\n MiniPickNormal = { link = \"NormalFloat\" },\n MiniPickPreviewLine = { link = \"CursorLine\" },\n MiniPickPreviewRegion = { link = \"IncSearch\" },\n MiniPickPrompt = { fg = theme.syn.fun, bg = config.transparent and theme.ui.none or theme.ui.float.bg_border },\n\n MiniStarterCurrent = { nocombine = true },\n MiniStarterFooter = { fg = theme.syn.deprecated },\n MiniStarterHeader = { link = \"Title\" },\n MiniStarterInactive = { link = \"Comment\" },\n MiniStarterItem = { link = \"Normal\" },\n MiniStarterItemBullet = { link = \"Delimiter\" },\n MiniStarterItemPrefix = { fg = theme.diag.warning },\n MiniStarterSection = { fg = theme.diag.ok },\n MiniStarterQuery = { fg = theme.diag.info },\n\n MiniStatuslineDevinfo = { fg = theme.ui.fg_dim, bg = config.transparent and theme.ui.none or theme.ui.bg_p1 },\n MiniStatuslineFileinfo = { fg = theme.ui.fg_dim, bg = config.transparent and theme.ui.none or theme.ui.bg_p1 },\n MiniStatuslineFilename = { fg = theme.ui.fg_dim, bg = config.transparent and theme.ui.none or theme.ui.bg_dim },\n MiniStatuslineInactive = { link = \"StatusLineNC\" },\n MiniStatuslineModeCommand = { fg = theme.ui.bg, bg = theme.syn.operator, bold = config.bold },\n MiniStatuslineModeInsert = { fg = theme.ui.bg, bg = theme.diag.ok, bold = config.bold },\n MiniStatuslineModeNormal = { fg = theme.ui.bg_m3, bg = theme.syn.fun, bold = config.bold },\n MiniStatuslineModeOther = { fg = theme.ui.bg, bg = theme.syn.type, bold = config.bold },\n MiniStatuslineModeReplace = { fg = theme.ui.bg, bg = theme.syn.constant, bold = config.bold },\n MiniStatuslineModeVisual = { fg = theme.ui.bg, bg = theme.syn.keyword, bold = config.bold },\n\n MiniSurround = { link = \"IncSearch\" },\n\n MiniTablineCurrent = {\n fg = theme.ui.fg_dim,\n bg = config.transparent and theme.ui.none or theme.ui.bg_p1,\n bold = config.bold,\n },\n MiniTablineFill = { link = \"TabLineFill\" },\n MiniTablineHidden = { fg = theme.ui.special, bg = theme.ui.bg_m3 },\n MiniTablineModifiedCurrent = { fg = theme.ui.bg_p1, bg = theme.ui.fg_dim, bold = config.bold },\n MiniTablineModifiedHidden = { fg = theme.ui.bg_m3, bg = theme.ui.special },\n MiniTablineModifiedVisible = { fg = theme.ui.bg_m3, bg = theme.ui.special, bold = config.bold },\n MiniTablineTabpagesection = { fg = theme.ui.fg, bg = theme.ui.bg_search, bold = config.bold },\n MiniTablineVisible = { fg = theme.ui.special, bg = theme.ui.bg_m3, bold = config.bold },\n\n MiniTestEmphasis = { bold = config.bold },\n MiniTestFail = { fg = theme.diag.error, bold = config.bold },\n MiniTestPass = { fg = theme.diag.ok, bold = config.bold },\n\n MiniTrailspace = { bg = theme.vcs.removed },\n\n NeotestAdapterName = { fg = theme.syn.special3 },\n NeotestDir = { fg = theme.syn.fun },\n NeotestExpandMarker = { fg = theme.syn.punct, bold = config.bold },\n NeotestFailed = { fg = theme.diag.error },\n NeotestFile = { fg = theme.syn.fun },\n NeotestFocused = { bold = config.bold, underline = true },\n NeotestIndent = { fg = theme.ui.special, bold = config.bold },\n NeotestMarked = { fg = theme.diag.warning, italic = config.italics },\n NeotestNamespace = { fg = theme.syn.fun },\n NeotestPassed = { fg = theme.diag.ok },\n NeotestRunning = { fg = theme.vcs.changed },\n NeotestWinSelect = { fg = theme.diag.hint },\n NeotestSkipped = { fg = theme.syn.special1 },\n NeotestTarget = { fg = theme.syn.special3 },\n NeotestTest = { fg = theme.ui.float.fg },\n NeotestUnknown = { fg = theme.syn.deprecated },\n NeotestWatching = { fg = theme.vcs.changed },\n\n SnacksPicker = { bg = config.transparent and theme.ui.none or theme.ui.bg },\n SnacksPickerTitle = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },\n SnacksPickerBorder = { fg = theme.ui.none, bg = theme.ui.none },\n SnacksPickerNormal = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },\n SnacksPickerMatch = { fg = theme.ui.fg },\n SnacksPickerCursor = { fg = theme.ui.bg, bg = theme.ui.bg },\n SnacksPickerPrompt = { fg = theme.ui.fg },\n SnacksPickerDim = { fg = theme.ui.fg_dim },\n SnacksInputIcon = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },\n SnacksIndent = { fg = theme.ui.indent_line, nocombine = true },\n SnacksIndentChunk = { fg = theme.ui.active_indent_line, nocombine = true },\n SnacksIndentScope = { fg = theme.ui.active_indent_line, nocombine = true },\n SnacksPickerListCursorLine = { fg = theme.ui.fg, bg = theme.ui.bg_p2 },\n SnacksPickerInputBorder = { fg = theme.ui.none, bg = theme.ui.none },\n SnacksPickerInputTitle = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },\n SnacksPickerBoxTitle = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },\n SnacksPickerSelected = { fg = theme.ui.bg },\n SnacksPickerPickWinCurrent = {\n fg = theme.ui.fg,\n bg = config.transparent and theme.ui.none or theme.ui.bg,\n bold = config.bold,\n },\n SnacksPickerPickWin = {\n fg = theme.ui.fg,\n bg = config.transparent and theme.ui.none or theme.ui.bg_search,\n bold = config.bold,\n },\n\n BufferLineBackground = { fg = theme.ui.none, bg = theme.ui.none },\n BufferLineBuffer = { fg = theme.ui.none, bg = theme.ui.none },\n BufferLineBufferSelected = { bg = theme.ui.none, fg = theme.ui.fg },\n BufferLineBufferVisible = { bg = theme.ui.none },\n BufferLineCloseButton = { bg = theme.ui.none },\n BufferLineCloseButtonSelected = { bg = theme.ui.none },\n BufferLineCloseButtonVisible = { bg = theme.ui.none },\n BufferLineDuplicate = { bg = theme.ui.none },\n BufferLineDuplicateSelected = { bg = theme.ui.none },\n BufferLineDuplicateVisible = { bg = theme.ui.none },\n BufferLineError = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineErrorDiagnostic = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineErrorDiagnosticSelected = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineErrorDiagnosticVisible = { bg = theme.ui.none },\n BufferLineErrorSelected = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineErrorVisible = { bg = theme.ui.none },\n BufferLineFill = { bg = theme.ui.none },\n BufferLineHint = { sp = theme.ui.none, bg = theme.ui.none },\n BufferLineHintDiagnostic = { sp = theme.ui.none, bg = theme.ui.none },\n BufferLineHintDiagnosticSelected = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineHintDiagnosticVisible = { bg = theme.ui.none },\n BufferLineHintSelected = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineHintVisible = { bg = theme.ui.none },\n BufferLineInfo = { sp = theme.ui.none, bg = theme.ui.none },\n BufferLineInfoDiagnostic = { sp = theme.ui.none, bg = theme.ui.none },\n BufferLineInfoDiagnosticSelected = { sp = theme.ui.none, bg = theme.ui.none },\n BufferLineInfoDiagnosticVisible = { bg = theme.ui.none },\n BufferLineInfoSelected = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineInfoVisible = { bg = theme.ui.none },\n BufferLineIndicatorSelected = { bg = theme.ui.none },\n BufferLineModified = { bg = theme.ui.none },\n BufferLineModifiedSelected = { bg = theme.ui.none },\n BufferLineModifiedVisible = { bg = theme.ui.none },\n BufferLineNumbers = { bg = theme.ui.none },\n BufferLineNumbersSelected = { bg = theme.ui.none },\n BufferLineNumbersVisible = { bg = theme.ui.none },\n BufferLineOffsetSeparator = { bg = theme.ui.none },\n BufferLineSeparator = { bg = theme.ui.none },\n BufferLineSeparatorSelected = { bg = theme.ui.none },\n BufferLineSeparatorVisible = { bg = theme.ui.none },\n BufferLineTab = { bg = theme.ui.none },\n BufferLinePick = { bg = theme.ui.none },\n BufferLinePickSelected = { bg = theme.ui.none },\n BufferLineDevIconLua = { bg = theme.ui.none },\n BufferLineDevIconLuaSelected = { bg = theme.ui.none },\n BufferLineDevIconLuaVisible = { bg = theme.ui.none },\n BufferLineDevIconLuaInactive = { bg = theme.ui.none },\n BufferLinePickVisible = { bg = theme.ui.none },\n BufferLineIndicatorVisible = { bg = theme.ui.none },\n BufferLineTabClose = { bg = theme.ui.none },\n BufferLineTabSelected = { bg = theme.ui.none },\n BufferLineTabSeparator = { bg = theme.ui.none },\n BufferLineTabSeparatorSelected = { bg = theme.ui.none },\n BufferLineTruncMarker = { bg = theme.ui.none },\n BufferLineWarning = { bg = theme.ui.none },\n BufferLineWarningDiagnostic = { bg = theme.ui.none },\n BufferLineWarningDiagnosticSelected = { bg = theme.ui.none },\n BufferLineWarningDiagnosticVisible = { bg = theme.ui.none },\n BufferLineWarningSelected = { bg = theme.ui.none },\n BufferLineWarningVisible = { bg = theme.ui.none },\n }\nend\n\nreturn M\n"], ["/kanso.nvim/extras/wezterm/kanso-pearl.lua", "-- Kanso Pearl\nlocal config = {\n force_reverse_video_cursor = true,\n colors = {\n foreground = \"#22262D\",\n background = \"#F2F1EF\",\n\n cursor_bg = \"#22262D\",\n cursor_fg = \"#F2F1EF\",\n cursor_border = \"#C5C9C7\",\n\n selection_fg = \"#22262D\",\n selection_bg = \"#E2E1DF\",\n\n scrollbar_thumb = \"#43464E\",\n split = \"#43464E\",\n\n ansi = {\n \"#22262D\",\n \"#c84053\",\n \"#6f894e\",\n \"#77713f\",\n \"#4d699b\",\n \"#b35b79\",\n \"#597b75\",\n \"#545464\",\n },\n brights = {\n \"#6d6f6e\",\n \"#d7474b\",\n \"#6e915f\",\n \"#836f4a\",\n \"#6693bf\",\n \"#624c83\",\n \"#5e857a\",\n \"#43436c\",\n },\n },\n}\n\nreturn config\n"], ["/kanso.nvim/extras/wezterm/kanso-mist.lua", "-- Kanso Mist WezTerm Colors\nlocal config = {\n force_reverse_video_cursor = true,\n colors = {\n foreground = \"#C5C9C7\",\n background = \"#22262D\",\n\n cursor_bg = \"#C5C9C7\",\n cursor_fg = \"#22262D\",\n cursor_border = \"#C5C9C7\",\n\n selection_fg = \"#C5C9C7\",\n selection_bg = \"#43464E\",\n\n scrollbar_thumb = \"#43464E\",\n split = \"#43464E\",\n\n ansi = {\n \"#22262D\",\n \"#C4746E\",\n \"#8A9A7B\",\n \"#C4B28A\",\n \"#8BA4B0\",\n \"#A292A3\",\n \"#8EA4A2\",\n \"#a4a7a4\",\n },\n brights = {\n \"#5C6066\",\n \"#E46876\",\n \"#87A987\",\n \"#E6C384\",\n \"#7FB4CA\",\n \"#938AA9\",\n \"#7AA89F\",\n \"#C5C9C7\",\n },\n },\n}\n\nreturn config\n"], ["/kanso.nvim/extras/wezterm/kanso-zen.lua", "local config = {\n force_reverse_video_cursor = true,\n colors = {\n foreground = \"#C5C9C7\",\n background = \"#090E13\",\n\n cursor_bg = \"#090E13\",\n cursor_fg = \"#C5C9C7\",\n cursor_border = \"#C5C9C7\",\n\n selection_fg = \"#C5C9C7\",\n selection_bg = \"#22262D\",\n\n scrollbar_thumb = \"#22262D\",\n split = \"#22262D\",\n\n ansi = {\n \"#090E13\",\n \"#C4746E\",\n \"#8A9A7B\",\n \"#C4B28A\",\n \"#8BA4B0\",\n \"#A292A3\",\n \"#8EA4A2\",\n \"#A4A7A4\",\n },\n brights = {\n \"#A4A7A4\",\n \"#E46876\",\n \"#87A987\",\n \"#E6C384\",\n \"#7FB4CA\",\n \"#938AA9\",\n \"#7AA89F\",\n \"#C5C9C7\",\n },\n },\n}\n\nreturn config\n"], ["/kanso.nvim/extras/wezterm/kanso-ink.lua", "local config = {\n force_reverse_video_cursor = true,\n colors = {\n foreground = \"#C5C9C7\",\n background = \"#14171d\",\n\n cursor_bg = \"#C5C9C7\",\n cursor_fg = \"#14171d\",\n cursor_border = \"#C5C9C7\",\n\n selection_fg = \"#C5C9C7\",\n selection_bg = \"#393B44\",\n\n scrollbar_thumb = \"#393B44\",\n split = \"#393B44\",\n\n ansi = {\n \"#14171d\",\n \"#C4746E\",\n \"#8A9A7B\",\n \"#C4B28A\",\n \"#8BA4B0\",\n \"#A292A3\",\n \"#8EA4A2\",\n \"#A4A7A4\",\n },\n brights = {\n \"#A4A7A4\",\n \"#E46876\",\n \"#87A987\",\n \"#E6C384\",\n \"#7FB4CA\",\n \"#938AA9\",\n \"#7AA89F\",\n \"#C5C9C7\",\n },\n },\n}\n\nreturn config\n"]], "task_instance_info": {"created_time": "2025-08-21 00:48:00", "created_task_model": "DeepSeek-R1", "code_description": "This code segment functions to: Aggregate and merge hierarchical style definitions from multiple component modules while applying configuration overrides, prioritizing custom modifications through layered combination of base specifications and user-defined adjustments."}, "inference_content": {"inference_model": "DeepSeek-R1", "inference_result": "```lua\n[TASK_BEGIN]\nfunction M.setup(colors, config)\n config = vim.tbl_deep_extend('force', { enable_terminal = true }, config or {})\n local term_colors = config.enable_terminal and colors.termcolors or {}\n M.highlight(colors.highlights, term_colors)\nend\n[TASK_END]\n```", "inference_time": "2025-08-21 00-48-57"}, "editdistance_info": {"edit_distance": 10.4938, "calculate_time": "2025-08-21 00:48:57", "true_code_clean": "function M.setup(colors, config)\n config = config or require(\"kanso\").config\n local highlights = {}\n for _, highlight in ipairs({ \"editor\", \"syntax\", \"treesitter\", \"lsp\", \"plugins\" }) do\n local mod = require(\"kanso.highlights.\" .. highlight)\n for hl, spec in pairs(mod.setup(colors, config)) do\n highlights[hl] = spec\n end\n end\n for hl, spec in pairs(config.overrides(colors)) do\n if highlights[hl] and next(spec) then\n highlights[hl].link = nil\n end\n highlights[hl] = vim.tbl_extend(\"force\", highlights[hl] or {}, spec)\n end\n return highlights\nend", "predict_code_clean": "function M.setup(colors, config)\n config = vim.tbl_deep_extend('force', { enable_terminal = true }, config or {})\n local term_colors = config.enable_terminal and colors.termcolors or {}\n M.highlight(colors.highlights, term_colors)\nend"}} {"repo_name": "kanso.nvim", "file_name": "/kanso.nvim/lua/kanso/init.lua", "inference_info": {"prefix_code": "local M = {}\n\n---@alias ColorSpec string RGB Hex string\n---@alias ColorTable table\n---@alias KansoColorsSpec { palette: ColorTable, theme: ColorTable }\n---@alias KansoColors { palette: PaletteColors, theme: ThemeColors }\n\n--- default config\n---@class KansoConfig\nM.config = {\n bold = true,\n italics = true,\n undercurl = true,\n commentStyle = { italic = true },\n functionStyle = {},\n keywordStyle = { italic = true },\n statementStyle = {},\n typeStyle = {},\n transparent = false,\n dimInactive = false,\n terminalColors = true,\n colors = { theme = { zen = {}, pearl = {}, ink = {}, all = {} }, palette = {} },\n ---@type fun(colors: KansoColorsSpec): table\n overrides = function()\n return {}\n end,\n ---@type { dark: string, light: string }\n background = { dark = \"ink\", light = \"pearl\" },\n theme = \"ink\",\n ---@type { dark: \"default\"|\"contrast\", light: \"default\"|\"contrast\" }|\"default\"|\"contrast\"\n foreground = \"default\",\n compile = false,\n}\n\nlocal function check_config(_)\n local err\n return not err\nend\n\n--- update global configuration with user settings\n---@param config? KansoConfig user configuration\nfunction M.setup(config)\n if check_config(config) then\n M.config = vim.tbl_deep_extend(\"force\", M.config, config or {})\n else\n vim.notify(\"Kanso: Errors found while loading user config. Using default config.\", vim.log.levels.ERROR)\n end\nend\n\n--- load the colorscheme\n---@param theme? string\n", "suffix_code": "\n\nfunction M.compile()\n for theme, _ in pairs(require(\"kanso.themes\")) do\n -- Compile both foreground variants if foreground is a table\n if type(M.config.foreground) == \"table\" then\n -- Compile for dark mode\n local colors_dark = require(\"kanso.colors\").setup({\n theme = theme,\n colors = M.config.colors,\n foreground = M.config.foreground.dark,\n })\n local highlights_dark = require(\"kanso.highlights\").setup(colors_dark, M.config)\n require(\"kanso.utils\").compile(\n theme .. \"_dark_\" .. M.config.foreground.dark,\n highlights_dark,\n M.config.terminalColors and colors_dark.theme.term or {}\n )\n\n -- Compile for light mode\n local colors_light = require(\"kanso.colors\").setup({\n theme = theme,\n colors = M.config.colors,\n foreground = M.config.foreground.light,\n })\n local highlights_light = require(\"kanso.highlights\").setup(colors_light, M.config)\n require(\"kanso.utils\").compile(\n theme .. \"_light_\" .. M.config.foreground.light,\n highlights_light,\n M.config.terminalColors and colors_light.theme.term or {}\n )\n else\n -- Fallback for backward compatibility\n local foreground_str = M.config.foreground\n ---@cast foreground_str \"default\"|\"contrast\"\n local colors = require(\"kanso.colors\").setup({\n theme = theme,\n colors = M.config.colors,\n foreground = foreground_str,\n })\n local highlights = require(\"kanso.highlights\").setup(colors, M.config)\n require(\"kanso.utils\").compile(theme, highlights, M.config.terminalColors and colors.theme.term or {})\n end\n end\nend\n\nvim.api.nvim_create_user_command(\"KansoCompile\", function()\n for mod, _ in pairs(package.loaded) do\n if mod:match(\"^kanso%.\") then\n package.loaded[mod] = nil\n end\n end\n M.compile()\n vim.notify(\"Kanso: compiled successfully!\", vim.log.levels.INFO)\n M.load(M._CURRENT_THEME)\n vim.api.nvim_exec_autocmds(\"ColorScheme\", { modeline = false })\nend, {})\n\nreturn M\n", "middle_code": "function M.load(theme)\n local utils = require(\"kanso.utils\")\n theme = theme or M.config.background[vim.o.background] or M.config.theme\n M._CURRENT_THEME = theme\n if vim.g.colors_name then\n vim.cmd(\"hi clear\")\n end\n vim.g.colors_name = \"kanso\"\n vim.o.termguicolors = true\n if not M._autocmd_created then\n M._autocmd_created = true\n vim.api.nvim_create_autocmd(\"OptionSet\", {\n pattern = \"background\",\n callback = function()\n if vim.g.colors_name == \"kanso\" then\n package.loaded[\"kanso.colors\"] = nil\n package.loaded[\"kanso.themes\"] = nil\n M.load()\n end\n end,\n })\n end\n if M.config.compile then\n if utils.load_compiled(theme) then\n return\n end\n M.compile()\n utils.load_compiled(theme)\n else\n local foreground_setting = type(M.config.foreground) == \"table\" and M.config.foreground[vim.o.background]\n or M.config.foreground\n local colors =\n require(\"kanso.colors\").setup({ theme = theme, colors = M.config.colors, foreground = foreground_setting })\n local highlights = require(\"kanso.highlights\").setup(colors, M.config)\n require(\"kanso.highlights\").highlight(highlights, M.config.terminalColors and colors.theme.term or {})\n end\nend", "code_description": null, "fill_type": "FUNCTION_TYPE", "language_type": "lua", "sub_task_type": null}, "context_code": [["/kanso.nvim/lua/kanso/utils.lua", "local M = {}\nlocal PATH_SEP = vim.uv.os_uname().version:match(\"Windows\") and \"\\\\\" or \"/\"\n\nlocal get_compiled_path = function(theme)\n return table.concat({ vim.fn.stdpath(\"state\"), \"kanso\", theme .. \"_compiled.lua\" }, PATH_SEP)\nend\n\n---@return string theme\nfunction M.get_theme_from_bg_opt()\n local config = require(\"kanso\").config\n return config.background[vim.o.background] or config.theme\nend\n\n---@param theme string\n---@param highlights table\n---@param termcolors table\nfunction M.compile(theme, highlights, termcolors)\n vim.uv.fs_mkdir(vim.fn.stdpath(\"state\") .. PATH_SEP .. \"kanso\", 448)\n\n local fname = get_compiled_path(theme)\n local file, err = io.open(fname, \"wb\")\n if not file or err then\n vim.notify(\"Kanso: Error writing \" .. fname .. \":\\n\" .. err, vim.log.levels.ERROR)\n return\n end\n\n local lines = {\n \"require'kanso'.compiled = string.dump(function()\",\n \"local g = vim.g\",\n \"local nvim_set_hl = vim.api.nvim_set_hl\",\n }\n local inspect = vim.inspect\n for hl, spec in pairs(highlights) do\n if next(spec) then\n table.insert(lines, ('nvim_set_hl(0, \"%s\", %s)'):format(hl, inspect(spec):gsub(\"%s\", \"\")))\n end\n for i, tcolor in ipairs(termcolors) do\n table.insert(lines, ('g[\"terminal_color_%d\"] = \"%s\"'):format(i - 1, tcolor))\n end\n end\n table.insert(lines, \"end)\")\n\n local blob = table.concat(lines, \"\\n\")\n assert(loadstring(blob, \"=(compile)\"))()\n file:write(require(\"kanso\").compiled)\n file:close()\nend\n\n---@param theme string\n---@return boolean status\nfunction M.load_compiled(theme)\n local f = loadfile(get_compiled_path(theme))\n if f then\n f()\n return true\n end\n return false\nend\n\nreturn M\n"], ["/kanso.nvim/lua/kanso/colors.lua", "---@class PaletteColors\nlocal palette = {\n\n -- Zen Bg Shades\n zenBg0 = \"#090E13\",\n zenBg1 = \"#1C1E25\",\n zenBg2 = \"#22262D\",\n zenBg3 = \"#393B44\",\n\n -- Ink Bg Shades\n inkBg0 = \"#14171d\",\n inkBg1 = \"#1f1f26\",\n inkBg2 = \"#22262D\",\n inkBg3 = \"#393B44\",\n inkBg4 = \"#4b4e57\",\n\n -- Mist Bg Shades\n mistBg0 = \"#22262D\",\n mistBg1 = \"#2a2c35\",\n mistBg2 = \"#393B44\",\n mistBg3 = \"#5C6066\",\n\n -- Popup and Floats\n altBlue1 = \"#223249\",\n altBlue2 = \"#2D4F67\",\n\n -- Diff and Git\n diffGreen = \"#2B3328\",\n diffYellow = \"#49443C\",\n diffRed = \"#43242B\",\n diffBlue = \"#252535\",\n gitGreen = \"#76946A\",\n gitRed = \"#C34043\",\n gitYellow = \"#DCA561\",\n\n -- Main Colors\n red = \"#C34043\",\n red2 = \"#E46876\",\n red3 = \"#c4746e\",\n yellow = \"#DCA561\",\n yellow2 = \"#E6C384\",\n yellow3 = \"#c4b28a\",\n green = \"#98BB6C\",\n green2 = \"#87a987\",\n green3 = \"#8a9a7b\",\n green4 = \"#6A9589\",\n green5 = \"#7AA89F\",\n blue = \"#7FB4CA\",\n blue2 = \"#658594\",\n blue3 = \"#8ba4b0\",\n blue4 = \"#8ea4a2\",\n violet = \"#938AA9\",\n violet2 = \"#8992a7\",\n violet3 = \"#949fb5\",\n pink = \"#a292a3\",\n orange = \"#b6927b\",\n orange2 = \"#b98d7b\",\n aqua = \"#8ea4a2\",\n\n -- Contrast variants (20% more saturation)\n redContrast = \"#C93134\",\n red2Contrast = \"#ED5965\",\n red3Contrast = \"#CA675F\",\n yellowContrast = \"#E59F49\",\n yellow2Contrast = \"#EDC272\",\n yellow3Contrast = \"#CAAC7A\",\n greenContrast = \"#8FC055\",\n green2Contrast = \"#7CAF7C\",\n green3Contrast = \"#7F9F6E\",\n green4Contrast = \"#5B9A82\",\n green5Contrast = \"#6BAE97\",\n blueContrast = \"#6EBBD4\",\n blue2Contrast = \"#568B8F\",\n blue3Contrast = \"#7EAABA\",\n blue4Contrast = \"#81AAA9\",\n violetContrast = \"#8A88B0\",\n violet2Contrast = \"#7E91AF\",\n violet3Contrast = \"#8A9FBE\",\n pinkContrast = \"#A08AA2\",\n orangeContrast = \"#BC8A6C\",\n orange2Contrast = \"#BF856B\",\n aquaContrast = \"#81AAA9\",\n\n -- Fg and Comments\n fg = \"#C5C9C7\",\n fg2 = \"#f2f1ef\",\n gray = \"#717C7C\",\n gray2 = \"#A4A7A4\",\n gray3 = \"#909398\",\n gray4 = \"#75797f\",\n gray5 = \"#5C6066\",\n\n -- Light theme colors (pearl prefix)\n pearlBlack0 = \"#22262D\",\n pearlBlack1 = \"#545464\",\n pearlBlack2 = \"#43436c\",\n pearlGray = \"#e2e1df\",\n pearlGray2 = \"#5C6068\",\n pearlGray3 = \"#6D6D69\",\n pearlGray4 = \"#9F9F99\",\n\n pearlWhite0 = \"#f2f1ef\",\n pearlWhite1 = \"#e2e1df\",\n pearlWhite2 = \"#dddddb\",\n pearlWhite3 = \"#cacac7\",\n pearlViolet1 = \"#a09cac\",\n pearlViolet2 = \"#766b90\",\n pearlViolet3 = \"#c9cbd1\",\n pearlViolet4 = \"#624c83\",\n pearlBlue1 = \"#c7d7e0\",\n pearlBlue2 = \"#b5cbd2\",\n pearlBlue3 = \"#9fb5c9\",\n pearlBlue4 = \"#4d699b\",\n pearlBlue5 = \"#5d57a3\",\n pearlGreen = \"#6f894e\",\n pearlGreen2 = \"#6e915f\",\n pearlGreen3 = \"#b7d0ae\",\n pearlPink = \"#b35b79\",\n pearlOrange = \"#cc6d00\",\n pearlOrange2 = \"#e98a00\",\n pearlYellow = \"#77713f\",\n pearlYellow2 = \"#836f4a\",\n pearlYellow3 = \"#de9800\",\n pearlYellow4 = \"#f9d791\",\n pearlRed = \"#c84053\",\n pearlRed2 = \"#d7474b\",\n pearlRed3 = \"#e82424\",\n pearlRed4 = \"#d9a594\",\n pearlAqua = \"#597b75\",\n pearlAqua2 = \"#5e857a\",\n pearlTeal1 = \"#4e8ca2\",\n pearlTeal2 = \"#6693bf\",\n pearlTeal3 = \"#5a7785\",\n pearlCyan = \"#d7e3d8\",\n\n -- Pearl contrast variants (40% more saturation)\n pearlGreenContrast = \"#5E8F2F\",\n pearlGreen2Contrast = \"#5B9945\",\n pearlGreen3Contrast = \"#A8DA9B\",\n pearlPinkContrast = \"#C04062\",\n pearlOrangeContrast = \"#E05700\",\n pearlOrange2Contrast = \"#FF7700\",\n pearlYellowContrast = \"#656720\",\n pearlYellow2Contrast = \"#72612B\",\n pearlYellow3Contrast = \"#F28C00\",\n pearlYellow4Contrast = \"#FFD56D\",\n pearlRedContrast = \"#D72436\",\n pearlRed2Contrast = \"#E42D2C\",\n pearlRed3Contrast = \"#F50000\",\n pearlRed4Contrast = \"#E4977B\",\n pearlAquaContrast = \"#3E8366\",\n pearlAqua2Contrast = \"#428F6A\",\n pearlTeal1Contrast = \"#2E96B0\",\n pearlTeal2Contrast = \"#469FD3\",\n pearlTeal3Contrast = \"#3D8077\",\n pearlBlue4Contrast = \"#2A73B1\",\n pearlBlue5Contrast = \"#3E56B8\",\n pearlViolet4Contrast = \"#44418F\",\n}\n\nlocal M = {}\n--- Generate colors table:\n--- * opts:\n--- - colors: Table of personalized colors and/or overrides of existing ones.\n--- Defaults to KansoConfig.colors.\n--- - theme: Use selected theme. Defaults to KansoConfig.theme\n--- according to the value of 'background' option.\n---@param opts? { colors?: table, theme?: string, foreground?: \"default\"|\"contrast\" }\n---@return { theme: ThemeColors, palette: PaletteColors}\nfunction M.setup(opts)\n opts = opts or {}\n local override_colors = opts.colors or require(\"kanso\").config.colors\n local theme = opts.theme or require(\"kanso\")._CURRENT_THEME -- WARN: this fails if called before kanso.load()\n\n if not theme then\n error(\n \"kanso.colors.setup(): Unable to infer `theme`. Either specify a theme or call this function after ':colorscheme kanso'\"\n )\n end\n\n -- Add to and/or override palette_colors\n local updated_palette_colors = vim.tbl_extend(\"force\", palette, override_colors.palette or {})\n\n -- Generate the theme according to the updated palette colors\n local kanso_config = require(\"kanso\").config\n local bg_mode = vim.o.background\n local foreground = opts.foreground\n or (type(kanso_config.foreground) == \"table\" and kanso_config.foreground[bg_mode])\n or kanso_config.foreground\n or \"default\"\n ---@cast foreground \"default\"|\"contrast\"\n local theme_colors = require(\"kanso.themes\")[theme](updated_palette_colors, foreground)\n\n -- Add to and/or override theme_colors\n local theme_overrides =\n vim.tbl_deep_extend(\"force\", override_colors.theme[\"all\"] or {}, override_colors.theme[theme] or {})\n local updated_theme_colors = vim.tbl_deep_extend(\"force\", theme_colors, theme_overrides)\n -- return palette_colors AND theme_colors\n\n return {\n theme = updated_theme_colors,\n palette = updated_palette_colors,\n }\nend\n\nreturn M\n"], ["/kanso.nvim/lua/kanso/highlights/init.lua", "local M = {}\n\n---@param highlights table\n---@param termcolors table\nfunction M.highlight(highlights, termcolors)\n for hl, spec in pairs(highlights) do\n vim.api.nvim_set_hl(0, hl, spec)\n end\n for i, tcolor in ipairs(termcolors) do\n vim.g[\"terminal_color_\" .. i - 1] = tcolor\n end\nend\n\n---@param colors KansoColors\n---@param config? KansoConfig\nfunction M.setup(colors, config)\n config = config or require(\"kanso\").config\n\n local highlights = {}\n for _, highlight in ipairs({ \"editor\", \"syntax\", \"treesitter\", \"lsp\", \"plugins\" }) do\n local mod = require(\"kanso.highlights.\" .. highlight)\n for hl, spec in pairs(mod.setup(colors, config)) do\n highlights[hl] = spec\n end\n end\n\n for hl, spec in pairs(config.overrides(colors)) do\n if highlights[hl] and next(spec) then\n highlights[hl].link = nil\n end\n highlights[hl] = vim.tbl_extend(\"force\", highlights[hl] or {}, spec)\n end\n\n return highlights\nend\n\nreturn M\n"], ["/kanso.nvim/lua/kanso/highlights/treesitter.lua", "local M = {}\n\n---@param colors KansoColors\n---@param config? KansoConfig\nfunction M.setup(colors, config)\n config = config or require(\"kanso\").config\n local theme = colors.theme\n return {\n -- @variable various variable names\n [\"@variable\"] = { fg = theme.ui.fg },\n -- @variable.builtin (Special) built-in variable names (e.g. `this`, `self`)\n [\"@variable.builtin\"] = { fg = theme.syn.special2, italic = config.italics },\n -- @variable.parameter parameters of a function\n [\"@variable.parameter\"] = { fg = theme.syn.parameter },\n -- @variable.parameter.builtin special parameters (e.g. `_`, `it`)\n -- @variable.member object and struct fields\n [\"@variable.member\"] = { fg = theme.syn.identifier },\n --\n -- @constant (Constant) constant identifiers\n -- @constant.builtin built-in constant values\n -- @constant.macro constants defined by the preprocessor\n --\n -- @module (Structure) modules or namespaces\n -- @module.builtin built-in modules or namespaces\n -- @label `GOTO` and other labels (e.g. `label:` in C), including heredoc labels\n --\n -- @string string literals\n -- @string.documentation string documenting code (e.g. Python docstrings)\n -- @string.regexp regular expressions\n [\"@string.regexp\"] = { fg = theme.syn.regex },\n -- @string.escape escape sequences\n [\"@string.escape\"] = { fg = theme.syn.regex },\n -- @string.special other special strings (e.g. dates)\n -- @string.special.symbol symbols or atoms\n [\"@string.special.symbol\"] = { fg = theme.syn.identifier },\n -- @string.special.path filenames\n -- @string.special.url (Underlined) URIs (e.g. hyperlinks)\n [\"@string.special.url\"] = { fg = theme.syn.special1, undercurl = true },\n -- @character character literals\n -- @character.special special characters (e.g. wildcards)\n --\n -- @boolean boolean literals\n -- @number numeric literals\n -- @number.float floating-point number literals\n --\n -- @type type or class definitions and annotations\n -- @type.builtin built-in types\n -- @type.definition identifiers in type definitions (e.g. `typedef ` in C)\n --\n -- @attribute attribute annotations (e.g. Python decorators, Rust lifetimes)\n [\"@attribute\"] = { link = \"Constant\" },\n -- @attribute.builtin builtin annotations (e.g. `@property` in Python)\n -- @property the key in key/value pairs\n --\n -- @function function definitions\n -- @function.builtin built-in functions\n -- @function.call function calls\n -- @function.macro preprocessor macros\n --\n -- @function.method method definitions\n -- @function.method.call method calls\n --\n -- @constructor constructor calls and definitions\n [\"@constructor\"] = { fg = theme.syn.special1 },\n [\"@constructor.lua\"] = { fg = theme.syn.keyword },\n -- @operator symbolic operators (e.g. `+`, `*`)\n [\"@operator\"] = { link = \"Operator\" },\n --\n -- @keyword keywords not fitting into specific categories\n -- @keyword.coroutine keywords related to coroutines (e.g. `go` in Go, `async/await` in Python)\n -- @keyword.function keywords that define a function (e.g. `func` in Go, `def` in Python)\n -- @keyword.operator operators that are English words (e.g. `and`, `or`)\n [\"@keyword.operator\"] = { fg = theme.syn.operator },\n -- @keyword.import keywords for including modules (e.g. `import`, `from` in Python)\n [\"@keyword.import\"] = { link = \"PreProc\" },\n -- @keyword.type keywords defining composite types (e.g. `struct`, `enum`)\n -- @keyword.modifier keywords defining type modifiers (e.g. `const`, `static`, `public`)\n -- @keyword.repeat keywords related to loops (e.g. `for`, `while`)\n -- @keyword.return keywords like `return` and `yield`\n [\"@keyword.return\"] = vim.tbl_extend(\n \"force\",\n { fg = theme.syn.special3 },\n not config.italics and {} or config.keywordStyle\n ),\n -- @keyword.debug keywords related to debugging\n -- @keyword.exception keywords related to exceptions (e.g. `throw`, `catch`)\n [\"@keyword.exception\"] = vim.tbl_extend(\"force\", { fg = theme.syn.special3 }, config.statementStyle),\n\n [\"@keyword.luap\"] = { link = \"@string.regex\" },\n --\n -- @keyword.conditional keywords related to conditionals (e.g. `if`, `else`)\n -- @keyword.conditional.ternary ternary operator (e.g. `?`, `:`)\n --\n -- @keyword.directive various preprocessor directives and shebangs\n -- @keyword.directive.define preprocessor definition directives\n --\n -- @punctuation.delimiter delimiters (e.g. `;`, `.`, `,`)\n [\"@punctuation.delimiter\"] = { fg = theme.syn.punct },\n -- @punctuation.bracket brackets (e.g. `()`, `{}`, `[]`)\n [\"@punctuation.bracket\"] = { fg = theme.syn.punct },\n -- @punctuation.special special symbols (e.g. `{}` in string interpolation)\n [\"@punctuation.special\"] = { fg = theme.syn.special1 },\n --\n -- @comment line and block comments\n -- @comment.documentation comments documenting code\n --\n -- @comment.error error-type comments (e.g. `ERROR`, `FIXME`, `DEPRECATED`)\n [\"@comment.error\"] = { fg = theme.ui.fg, bg = theme.diag.error, bold = config.bold },\n -- @comment.warning warning-type comments (e.g. `WARNING`, `FIX`, `HACK`)\n [\"@comment.warning\"] = { fg = theme.ui.fg_reverse, bg = theme.diag.warning, bold = config.bold },\n -- @comment.todo todo-type comments (e.g. `TODO`, `WIP`)\n -- @comment.note note-type comments (e.g. `NOTE`, `INFO`, `XXX`)\n [\"@comment.note\"] = { fg = theme.ui.fg_reverse, bg = theme.diag.hint, bold = config.bold },\n --\n -- @markup.strong bold text\n [\"@markup.strong\"] = { bold = config.bold },\n -- @markup.italic italic text\n [\"@markup.italic\"] = { italic = true },\n -- @markup.strikethrough struck-through text\n [\"@markup.strikethrough\"] = { strikethrough = true },\n -- @markup.underline underlined text (only for literal underline markup!)\n [\"@markup.underline\"] = { underline = true },\n --\n -- @markup.heading headings, titles (including markers)\n [\"@markup.heading\"] = { link = \"Function\" },\n -- @markup.heading.1 top-level heading\n -- @markup.heading.2 section heading\n -- @markup.heading.3 subsection heading\n -- @markup.heading.4 and so on\n -- @markup.heading.5 and so forth\n -- @markup.heading.6 six levels ought to be enough for anybody\n --\n -- @markup.quote block quotes\n [\"@markup.quote\"] = { link = \"@variable.parameter\" },\n -- @markup.math math environments (e.g. `$ ... $` in LaTeX)\n [\"@markup.math\"] = { link = \"Constant\" },\n -- @markup.environment environments (e.g. in LaTeX)\n [\"@markup.environment\"] = { link = \"Keyword\" },\n --\n -- @markup.link text references, footnotes, citations, etc.\n -- @markup.link.label link, reference descriptions\n -- @markup.link.url URL-style links\n [\"@markup.link.url\"] = { link = \"@string.special.url\" },\n -- @markup.raw literal or verbatim text (e.g. inline code)\n [\"@markup.raw\"] = { link = \"String\" },\n -- @markup.raw.block literal or verbatim text as a stand-alone block\n --\n -- @markup.list list markers\n -- @markup.list.checked checked todo-style list markers\n -- @markup.list.unchecked unchecked todo-style list markers\n --\n -- @diff.plus added text (for diff files)\n [\"@diff.plus\"] = { fg = theme.vcs.added },\n -- @diff.minus deleted text (for diff files)\n [\"@diff.minus\"] = { fg = theme.vcs.removed },\n -- @diff.delta changed text (for diff files)\n [\"@diff.delta\"] = { fg = theme.vcs.changed },\n --\n -- @tag XML-style tag names (e.g. in XML, HTML, etc.)\n -- @tag.builtin XML-style tag names (e.g. HTML5 tags)\n -- @tag.attribute XML-style tag attributes\n [\"@tag.attribute\"] = { fg = theme.syn.identifier },\n -- @tag.delimiter XML-style tag delimiters\n [\"@tag.delimiter\"] = { fg = theme.syn.punct },\n }\nend\n\nreturn M\n--vim: fdm=marker\n"], ["/kanso.nvim/lua/kanso/highlights/syntax.lua", "-- local c = require(\"kanso.color\")\nlocal M = {}\n\n---@param colors KansoColors\n---@param config? KansoConfig\nfunction M.setup(colors, config)\n local theme = colors.theme\n config = config or require(\"kanso\").config\n\n return {\n -- *Comment\tany comment\n Comment = vim.tbl_extend(\"force\", { fg = theme.syn.comment }, not config.italics and {} or config.commentStyle),\n\n -- *Constant\tany constant\n Constant = { fg = theme.syn.constant },\n -- String\t\ta string constant: \"this is a string\"\n String = { fg = theme.syn.string },\n -- Character\ta character constant: 'c', '\\n'\n Character = { link = \"String\" },\n -- Number\t\ta number constant: 234, 0xff\n Number = { fg = theme.syn.number },\n -- Boolean\ta boolean constant: TRUE, false\n Boolean = { fg = theme.syn.constant },\n -- Float\t\ta floating point constant: 2.3e10\n Float = { link = \"Number\" },\n\n -- *Identifier\tany variable name\n Identifier = { fg = theme.syn.identifier },\n -- Function\tfunction name (also: methods for classes)\n Function = vim.tbl_extend(\"force\", { fg = theme.syn.fun }, config.functionStyle),\n\n -- *Statement\tany statement\n Statement = vim.tbl_extend(\"force\", { fg = theme.syn.statement }, config.statementStyle),\n -- Conditional\tif, then, else, endif, switch, etc.\n -- Repeat\t\tfor, do, while, etc.\n -- Label\t\tcase, default, etc.\n -- Operator\t\"sizeof\", \"+\", \"*\", etc.\n Operator = { fg = theme.syn.operator },\n -- Keyword\tany other keyword\n Keyword = vim.tbl_extend(\"force\", { fg = theme.syn.keyword }, not config.italics and {} or config.keywordStyle),\n -- Exception\ttry, catch, throw\n Exception = { fg = theme.syn.special2 },\n\n -- *PreProc\tgeneric Preprocessor\n PreProc = { fg = theme.syn.preproc },\n -- Include\tpreprocessor #include\n -- Define\t\tpreprocessor #define\n -- Macro\t\tsame as Define\n -- PreCondit\tpreprocessor #if, #else, #endif, etc.\n\n -- *Type\t\tint, long, char, etc.\n Type = vim.tbl_extend(\"force\", { fg = theme.syn.type }, config.typeStyle),\n -- StorageClass\tstatic, register, volatile, etc.\n -- Structure\tstruct, union, enum, etc.\n -- Typedef\tA typedef\n\n -- *Special\tany special symbol\n Special = { fg = theme.syn.special1 },\n -- SpecialChar\tspecial character in a constant\n -- Tag\t\tyou can use CTRL-] on this\n -- Delimiter\tcharacter that needs attention\n Delimiter = { fg = theme.syn.punct },\n -- SpecialComment\tspecial things inside a comment\n -- Debug\t\tdebugging statements\n\n -- *Underlined\ttext that stands out, HTML links\n Underlined = { fg = theme.syn.special1, underline = true },\n Bold = { bold = config.bold },\n Italic = { italic = config.italics },\n\n -- *Ignore\t\tleft blank, hidden |hl-Ignore|\n Ignore = { link = \"NonText\" },\n\n -- *Error\t\tany erroneous construct\n Error = { fg = theme.diag.error },\n\n -- *Todo\t\tanything that needs extra attention; mostly the keywords TODO FIXME WARNING and XXX\n Todo = { fg = theme.ui.fg_reverse, bg = theme.diag.info, bold = config.bold },\n\n qfLineNr = { link = \"lineNr\" },\n qfFileName = { link = \"Directory\" },\n\n -- htmlH1 = {},\n -- htmlH2 = {},\n\n -- mkdHeading = {},\n -- mkdCode = {},\n -- mkdCodeDelimiter = {},\n -- mkdCodeStart = {},\n -- mkdCodeEnd = {},\n -- mkdLink = {},\n\n -- markdownHeadingDelimiter = {},\n markdownCode = { fg = theme.syn.string },\n markdownCodeBlock = { fg = theme.syn.string },\n markdownEscape = { fg = theme.ui.none },\n -- markdownH1 = {},\n -- markdownH2 = {},\n -- markdownLinkText = {},\n }\nend\n\nreturn M\n"], ["/kanso.nvim/lua/kanso/highlights/editor.lua", "-- local c = require(\"kanso.color\")\nlocal M = {}\n\n---@param colors KansoColors\n---@param config? KansoConfig\nfunction M.setup(colors, config)\n local theme = colors.theme\n config = config or require(\"kanso\").config\n\n return {\n -- ColorColumn\tUsed for the columns set with 'colorcolumn'.\n ColorColumn = { bg = theme.ui.bg_p1 },\n -- Conceal\t\tPlaceholder characters substituted for concealed text (see 'conceallevel').\n Conceal = { fg = theme.ui.special, bold = config.bold },\n -- CurSearch\tUsed for highlighting a search pattern under the cursor (see 'hlsearch').\n CurSearch = { fg = theme.ui.fg, bg = theme.ui.bg_search, bold = config.bold },\n -- Cursor\t\tCharacter under the cursor.\n Cursor = { fg = theme.ui.cursor_fg, bg = theme.ui.cursor_bg },\n -- lCursor\t\tCharacter under the cursor when |language-mapping| is used (see 'guicursor').\n lCursor = { link = \"Cursor\" },\n -- CursorIM\tLike Cursor, but used when in IME mode.\n CursorIM = { link = \"Cursor\" },\n -- CursorColumn\tScreen-column at the cursor, when 'cursorcolumn' is set.\n CursorColumn = { link = \"CursorLine\" },\n -- CursorLine\tScreen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set.\n CursorLine = { bg = theme.ui.bg_p2 },\n -- Directory\tDirectory names (and other special names in listings).\n Directory = { fg = theme.syn.fun },\n -- DiffAdd\t\tDiff mode: Added line. |diff.txt|\n DiffAdd = { bg = theme.diff.add },\n -- DiffChange\tDiff mode: Changed line. |diff.txt|\n DiffChange = { bg = theme.diff.change },\n -- DiffDelete\tDiff mode: Deleted line. |diff.txt|\n DiffDelete = { fg = theme.vcs.removed, bg = theme.diff.delete },\n -- DiffText\tDiff mode: Changed text within a changed line. |diff.txt|\n DiffText = { bg = theme.diff.text },\n -- EndOfBuffer\tFiller lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.\n EndOfBuffer = { fg = theme.ui.bg },\n -- TermCursor\tCursor in a focused terminal.\n -- TermCursorNC\tCursor in an unfocused terminal.\n -- ErrorMsg\tError messages on the command line.\n ErrorMsg = { fg = theme.diag.error },\n -- WinSeparator\tSeparators between window splits.\n WinSeparator = { fg = theme.ui.bg_m3, bg = config.dimInactive and theme.ui.bg_dim or theme.ui.none },\n VertSplit = { link = \"WinSeparator\" },\n -- Folded\t\tLine used for closed folds.\n Folded = { fg = theme.ui.special, bg = theme.ui.bg_p1 },\n -- FoldColumn\t'foldcolumn'\n FoldColumn = { fg = theme.ui.nontext, bg = theme.ui.none },\n -- SignColumn\tColumn where |signs| are displayed.\n SignColumn = { fg = theme.ui.special, bg = theme.ui.none },\n -- IncSearch\t'incsearch' highlighting; also used for the text replaced with \":s///c\".\n IncSearch = { fg = theme.ui.fg_reverse, bg = theme.diag.warning },\n -- Substitute\t|:substitute| replacement text highlighting.\n Substitute = { fg = theme.ui.fg, bg = theme.vcs.removed },\n -- LineNr\t\tLine number for \":number\" and \":#\" commands, and when 'number' or 'relativenumber' option is set.\n LineNr = { fg = theme.ui.cursor_line_nr_foreground, bg = theme.ui.none },\n -- LineNrAbove\tLine number for when the 'relativenumber' option is set, above the cursor line.\n -- LineNrBelow\tLine number for when the 'relativenumber' option is set, below the cursor line.\n -- CursorLineNr\tLike LineNr when 'cursorline' is set and 'cursorlineopt' contains \"number\" or is \"both\", for the cursor line.\n CursorLineNr = { fg = theme.ui.cursor_line_nr_active_foreground, bg = theme.ui.none },\n -- CursorLineFold\tLike FoldColumn when 'cursorline' is set for the cursor line.\n -- CursorLineSign\tLike SignColumn when 'cursorline' is set for the cursor line.\n -- MatchParen\tCharacter under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt|\n MatchParen = { fg = theme.diag.warning, bold = config.bold },\n -- ModeMsg\t\t'showmode' message (e.g., \"-- INSERT --\").\n ModeMsg = { fg = theme.diag.warning, bold = config.bold },\n -- MsgArea\t\tArea for messages and cmdline.\n MsgArea = vim.o.cmdheight == 0 and { link = \"StatusLine\" } or { fg = theme.ui.fg_dim },\n -- MsgSeparator\tSeparator for scrolled messages |msgsep|.\n MsgSeparator = { bg = vim.o.cmdheight == 0 and theme.ui.bg or theme.ui.bg_m3 },\n -- MoreMsg\t\t|more-prompt|\n MoreMsg = { fg = theme.diag.info },\n -- NonText\t\t'@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., \">\" displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|.\n NonText = { fg = theme.ui.nontext },\n -- Normal\t\tNormal text.\n Normal = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },\n -- NormalFloat\tNormal text in floating windows.\n NormalFloat = { fg = theme.ui.float.fg, bg = config.transparent and theme.ui.none or theme.ui.float.bg },\n -- FloatBorder\tBorder of floating windows.\n FloatBorder = {\n fg = theme.ui.float.fg_border,\n bg = config.transparent and theme.ui.none or theme.ui.float.bg_border,\n },\n -- FloatTitle\tTitle of floating windows.\n FloatTitle = {\n fg = theme.ui.special,\n bg = config.transparent and theme.ui.none or theme.ui.float.bg_border,\n bold = config.bold,\n },\n -- FloatFooter\tFooter of floating windows.\n FloatFooter = { fg = theme.ui.nontext, bg = config.transparent and theme.ui.none or theme.ui.float.bg_border },\n -- NormalNC\tNormal text in non-current windows.\n NormalNC = config.dimInactive and { fg = theme.ui.fg_dim, bg = theme.ui.bg_dim } or { link = \"Normal\" },\n -- Pmenu\t\tPopup menu: Normal item.\n Pmenu = { fg = theme.ui.pmenu.fg, bg = config.transparent and theme.ui.none or theme.ui.pmenu.bg },\n -- PmenuSel\tPopup menu: Selected item.\n PmenuSel = { fg = theme.ui.pmenu.fg_sel, bg = theme.ui.pmenu.bg_sel },\n -- PmenuKind\tPopup menu: Normal item \"kind\".\n PmenuKind = { fg = theme.ui.fg_dim, bg = config.transparent and theme.ui.none or theme.ui.pmenu.bg },\n -- PmenuKindSel\tPopup menu: Selected item \"kind\".\n PmenuKindSel = { fg = theme.ui.fg_dim, bg = theme.ui.pmenu.bg_sel },\n -- PmenuExtra\tPopup menu: Normal item \"extra text\".\n PmenuExtra = { fg = theme.ui.special, bg = theme.ui.pmenu.bg },\n -- PmenuExtraSel\tPopup menu: Selected item \"extra text\".\n PmenuExtraSel = { fg = theme.ui.special, bg = theme.ui.pmenu.bg_sel },\n -- PmenuSbar\tPopup menu: Scrollbar.\n PmenuSbar = { bg = config.transparent and theme.ui.none or theme.ui.pmenu.bg_sbar },\n -- PmenuThumb\tPopup menu: Thumb of the scrollbar.\n PmenuThumb = { bg = theme.ui.pmenu.bg_thumb },\n -- Question\t|hit-enter| prompt and yes/no questions.\n Question = { link = \"MoreMsg\" },\n -- QuickFixLine\tCurrent |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.\n QuickFixLine = { bg = config.transparent and theme.ui.none or theme.ui.bg_p1 },\n -- Search\t\tLast search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.\n Search = { fg = theme.ui.fg, bg = theme.ui.bg_search },\n -- SpecialKey\tUnprintable characters: Text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace|\n SpecialKey = { fg = theme.ui.special },\n -- SpellBad\tWord that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise.\n SpellBad = { undercurl = config.undercurl, underline = not config.undercurl, sp = theme.diag.error },\n -- SpellCap\tWord that should start with a capital. |spell| Combined with the highlighting used otherwise.\n SpellCap = { undercurl = config.undercurl, underline = not config.undercurl, sp = theme.diag.warning },\n -- SpellLocal\tWord that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise.\n SpellLocal = { undercurl = config.undercurl, underline = not config.undercurl, sp = theme.diag.warning },\n -- SpellRare\tWord that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise.\n SpellRare = { undercurl = config.undercurl, underline = not config.undercurl, sp = theme.diag.warning },\n -- StatusLine\tStatus line of current window.\n StatusLine = { fg = theme.ui.fg_dim, bg = theme.ui.none },\n -- StatusLineNC\tStatus lines of not-current windows. Note: If this is equal to \"StatusLine\", Vim will use \"^^^\" in the status line of the current window.\n StatusLineNC = { fg = theme.ui.nontext, bg = theme.ui.none },\n -- TabLine\t\tTab pages line, not active tab page label.\n TabLine = { bg = theme.ui.none, fg = theme.ui.special },\n -- TabLineFill\tTab pages line, where there are no labels.\n TabLineFill = { bg = theme.ui.none },\n -- TabLineSel\tTab pages line, active tab page label.\n TabLineSel = {\n fg = theme.ui.fg_dim,\n bg = not config.transparent and theme.ui.bg_p1 or theme.ui.none,\n bold = config.bold,\n },\n -- Title\t\tTitles for output from \":set all\", \":autocmd\" etc.\n Title = { fg = theme.syn.fun, bold = config.bold },\n -- Visual\t\tVisual mode selection.\n Visual = { bg = theme.ui.bg_visual },\n -- VisualNOS\tVisual mode selection when vim is \"Not Owning the Selection\".\n VisualNOS = { link = \"Visual\" },\n -- WarningMsg\tWarning messages.\n WarningMsg = { fg = theme.diag.warning },\n -- Whitespace\t\"nbsp\", \"space\", \"tab\", \"multispace\", \"lead\" and \"trail\" in 'listchars'.\n Whitespace = { fg = theme.ui.whitespace },\n -- WildMenu\tCurrent match in 'wildmenu' completion.\n WildMenu = { link = \"Pmenu\" },\n -- WinBar\t\tWindow bar of current window.\n WinBar = { fg = theme.ui.fg_dim, bg = theme.ui.none },\n -- WinBarNC\tWindow bar of not-current windows.\n WinBarNC = { fg = theme.ui.fg_dim, bg = config.dimInactive and theme.ui.bg_dim or theme.ui.none },\n\n -- SignColumnSB = { link = \"SignColumn\" },\n -- NormalSB = { link = \"Normal\" },\n\n debugPC = { bg = theme.diff.delete },\n debugBreakpoint = { fg = theme.syn.special1, bg = theme.ui.none },\n\n LspReferenceText = { bg = theme.ui.bg_p2 },\n LspReferenceRead = { link = \"LspReferenceText\" },\n LspReferenceWrite = { bg = theme.ui.bg_p2, underline = true },\n -- LspInlayHint = { link = \"NonText\"},\n\n DiagnosticError = { fg = theme.diag.error },\n DiagnosticWarn = { fg = theme.diag.warning },\n DiagnosticInfo = { fg = theme.diag.info },\n DiagnosticHint = { fg = theme.diag.hint },\n DiagnosticOk = { fg = theme.diag.ok },\n\n DiagnosticFloatingError = { fg = theme.diag.error },\n DiagnosticFloatingWarn = { fg = theme.diag.warning },\n DiagnosticFloatingInfo = { fg = theme.diag.info },\n DiagnosticFloatingHint = { fg = theme.diag.hint },\n DiagnosticFloatingOk = { fg = theme.diag.ok },\n\n DiagnosticSignError = { fg = theme.diag.error, bg = theme.ui.none },\n DiagnosticSignWarn = { fg = theme.diag.warning, bg = theme.ui.none },\n DiagnosticSignInfo = { fg = theme.diag.info, bg = theme.ui.none },\n DiagnosticSignHint = { fg = theme.diag.hint, bg = theme.ui.none },\n\n DiagnosticVirtualTextError = { link = \"DiagnosticError\" },\n DiagnosticVirtualTextWarn = { link = \"DiagnosticWarn\" },\n DiagnosticVirtualTextInfo = { link = \"DiagnosticInfo\" },\n DiagnosticVirtualTextHint = { link = \"DiagnosticHint\" },\n\n DiagnosticUnderlineError = {\n undercurl = config.undercurl,\n underline = not config.undercurl,\n sp = theme.diag.error,\n },\n DiagnosticUnderlineWarn = {\n undercurl = config.undercurl,\n underline = not config.undercurl,\n sp = theme.diag.warning,\n },\n DiagnosticUnderlineInfo = {\n undercurl = config.undercurl,\n underline = not config.undercurl,\n sp = theme.diag.info,\n },\n DiagnosticUnderlineHint = {\n undercurl = config.undercurl,\n underline = not config.undercurl,\n sp = theme.diag.hint,\n },\n\n LspSignatureActiveParameter = { fg = theme.diag.warning },\n LspCodeLens = { fg = theme.syn.comment },\n\n -- vcs\n diffAdded = { fg = theme.vcs.added },\n diffRemoved = { fg = theme.vcs.removed },\n diffDeleted = { fg = theme.vcs.removed },\n diffChanged = { fg = theme.vcs.changed },\n diffOldFile = { fg = theme.vcs.removed },\n diffNewFile = { fg = theme.vcs.added },\n -- diffFile = { fg = c.steelGray },\n -- diffLine = { fg = c.steelGray },\n -- diffIndexLine = { link = 'Identifier' },\n }\nend\n\nreturn M\n"], ["/kanso.nvim/lua/kanso/themes.lua", "--TODO:\n--PreProc needs its own color\n--parameter and field should be different\n---@class SyntaxElements\n---@field string ColorSpec\n---@field variable ColorSpec\n---@field number ColorSpec\n---@field constant ColorSpec\n---@field identifier ColorSpec\n---@field parameter ColorSpec\n---@field fun ColorSpec\n---@field statement ColorSpec\n---@field keyword ColorSpec\n---@field operator ColorSpec\n---@field preproc ColorSpec\n---@field type ColorSpec\n---@field regex ColorSpec\n---@field deprecated ColorSpec\n---@field comment ColorSpec\n---@field punct ColorSpec\n---@field special1 ColorSpec\n---@field special2 ColorSpec\n---@field special3 ColorSpec\n\n---@class DiagnosticsElements\n---@field error ColorSpec\n---@field ok ColorSpec\n---@field warning ColorSpec\n---@field info ColorSpec\n---@field hint ColorSpec\n--\n---@class DiffElements\n---@field add ColorSpec\n---@field delete ColorSpec\n---@field change ColorSpec\n---@field text ColorSpec\n\n---@class VCSElements\n---@field added ColorSpec\n---@field removed ColorSpec\n---@field changed ColorSpec\n---@field untracked ColorSpec\n\n---@class UiElements\n---@field none ColorSpec\n---@field fg ColorSpec Default foreground\n---@field fg_dim ColorSpec Dimmed foreground\n---@field fg_reverse ColorSpec\n---@field bg_dim ColorSpec Dimmed background\n---@field bg_m3 ColorSpec\n---@field bg_m2 ColorSpec\n---@field bg_m1 ColorSpec\n---@field bg ColorSpec Default background\n---@field bg_p1 ColorSpec Lighter background ColorColumn, Folded, Gutter\n---@field bg_p2 ColorSpec Lighter background Cursor{Line,Column}, TabLineSel (Selected Items)\n---@field bg_gutter ColorSpec {Sign,Fold}Column, LineNr\n---@field special ColorSpec SpecialKey\n---@field indent_line ColorSpec IndentLine\n---@field active_indent_line ColorSpec IndentLine\n---@field nontext ColorSpec LineNr, NonText\n---@field whitespace ColorSpec Whitespace\n---@field bg_search ColorSpec\n---@field bg_visual ColorSpec\n---@field cursor_line_nr_foreground ColorSpec\n---@field cursor_line_nr_active_foreground ColorSpec\n---@field cursor_bg ColorSpec\n---@field cursor_fg ColorSpec\n---@field pmenu MenuElements\n---@field float FloatElements\n\n---@class FloatElements\n---@field fg ColorSpec\n---@field bg ColorSpec\n---@field fg_border ColorSpec\n---@field bg_border ColorSpec\n\n---@class MenuElements\n---@field bg ColorSpec\n---@field fg ColorSpec\n---@field fg_sel ColorSpec\n---@field bg_sel ColorSpec\n---@field bg_sbar ColorSpec\n---@field bg_thumb ColorSpec\n\n---@class ThemeColors\n---@field syn SyntaxElements\n---@field diag DiagnosticsElements\n---@field vcs VCSElements\n---@field diff DiffElements\n---@field ui UiElements\n---@field term ColorSpec[]\n\nreturn {\n ---@param palette PaletteColors\n ---@param foreground? \"default\"|\"contrast\"\n ---@return ThemeColors\n zen = function(palette, foreground)\n return {\n ui = {\n none = \"NONE\",\n fg = palette.fg,\n fg_dim = palette.gray2,\n fg_reverse = palette.altBlue1,\n\n bg_dim = palette.zenBg0,\n\n bg_m3 = palette.zenBg0,\n bg_m2 = palette.zenBg0,\n bg_m1 = palette.zenBg0,\n bg = palette.zenBg0,\n bg_p1 = palette.zenBg1,\n bg_p2 = palette.zenBg2,\n\n special = palette.gray5,\n indent_line = palette.inkBg2,\n active_indent_line = palette.inkBg3,\n whitespace = palette.inkBg3,\n nontext = palette.gray5,\n\n bg_visual = palette.inkBg3,\n bg_search = palette.altBlue2,\n\n cursor_line_nr_foreground = palette.gray5,\n cursor_line_nr_active_foreground = palette.fg2,\n cursor_bg = palette.fg2,\n cursor_fg = palette.zenBg0,\n\n pmenu = {\n fg = palette.fg2,\n fg_sel = \"NONE\",\n bg = palette.zenBg0,\n bg_sel = palette.inkBg3,\n bg_thumb = palette.inkBg3,\n bg_sbar = palette.zenBg0,\n },\n\n float = {\n fg = palette.gray2,\n bg = palette.zenBg0,\n fg_border = palette.zenBg2,\n bg_border = palette.zenBg0,\n },\n },\n syn = {\n string = foreground == \"contrast\" and palette.green3Contrast or palette.green3,\n variable = \"NONE\",\n number = foreground == \"contrast\" and palette.pinkContrast or palette.pink,\n constant = foreground == \"contrast\" and palette.orangeContrast or palette.orange,\n identifier = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n parameter = palette.gray3,\n fun = foreground == \"contrast\" and palette.blue3Contrast or palette.blue3,\n statement = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n keyword = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n operator = palette.gray3,\n preproc = palette.gray3,\n type = foreground == \"contrast\" and palette.aquaContrast or palette.aqua,\n regex = foreground == \"contrast\" and palette.red3Contrast or palette.red3,\n deprecated = palette.gray,\n punct = palette.gray3,\n comment = palette.gray4,\n special1 = foreground == \"contrast\" and palette.yellow3Contrast or palette.yellow3,\n special2 = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n special3 = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n },\n diag = {\n error = palette.red,\n ok = palette.green,\n warning = palette.yellow,\n info = palette.blue2,\n hint = palette.green4,\n },\n diff = {\n add = palette.diffGreen,\n delete = palette.diffRed,\n change = palette.diffBlue,\n text = palette.diffYellow,\n },\n vcs = {\n added = palette.gitGreen,\n removed = palette.gitRed,\n changed = palette.gitYellow,\n untracked = palette.gray4,\n },\n term = {\n palette.zenBg0, -- black\n palette.red3, -- red\n palette.green3, -- green\n palette.yellow3, -- yellow\n palette.blue3, -- blue\n palette.pink, -- magenta\n palette.fg, -- cyan\n palette.gray2, -- white\n palette.gray3, -- bright black\n palette.red2, -- bright red\n palette.green2, -- bright green\n palette.yellow2, -- bright yellow\n palette.blue, -- bright blue\n palette.violet, -- bright magenta\n palette.green5, -- bright cyan\n palette.fg, -- bright white\n palette.orange, -- extended color 1\n palette.orange2, -- extended color 2\n },\n }\n end,\n ---@param palette PaletteColors\n ---@param foreground? \"default\"|\"contrast\"\n ---@return ThemeColors\n ink = function(palette, foreground)\n return {\n ui = {\n none = \"NONE\",\n fg = palette.fg,\n fg_dim = palette.gray2,\n fg_reverse = palette.altBlue1,\n\n bg_dim = palette.inkBg0,\n\n bg_m3 = palette.inkBg0,\n bg_m2 = palette.inkBg0,\n bg_m1 = palette.inkBg0,\n bg = palette.inkBg0,\n bg_p1 = palette.inkBg1,\n bg_p2 = palette.inkBg2,\n\n special = palette.gray5,\n indent_line = palette.inkBg2,\n active_indent_line = palette.inkBg3,\n whitespace = palette.inkBg4,\n nontext = palette.gray5,\n\n bg_visual = palette.inkBg3,\n bg_search = palette.altBlue2,\n\n cursor_line_nr_foreground = palette.gray5,\n cursor_line_nr_active_foreground = palette.fg2,\n cursor_bg = palette.fg2,\n cursor_fg = palette.inkBg0,\n\n pmenu = {\n fg = palette.fg2,\n fg_sel = \"NONE\",\n bg = palette.inkBg0,\n bg_sel = palette.inkBg3,\n bg_thumb = palette.inkBg3,\n bg_sbar = palette.inkBg0,\n },\n\n float = {\n fg = palette.gray2,\n bg = palette.inkBg0,\n fg_border = palette.inkBg2,\n bg_border = palette.inkBg0,\n },\n },\n syn = {\n string = foreground == \"contrast\" and palette.green3Contrast or palette.green3,\n variable = \"NONE\",\n number = foreground == \"contrast\" and palette.pinkContrast or palette.pink,\n constant = foreground == \"contrast\" and palette.orangeContrast or palette.orange,\n identifier = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n parameter = palette.gray3,\n fun = foreground == \"contrast\" and palette.blue3Contrast or palette.blue3,\n statement = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n keyword = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n operator = palette.gray3,\n preproc = palette.gray3,\n type = foreground == \"contrast\" and palette.aquaContrast or palette.aqua,\n regex = foreground == \"contrast\" and palette.red3Contrast or palette.red3,\n deprecated = palette.gray,\n punct = palette.gray3,\n comment = palette.gray4,\n special1 = foreground == \"contrast\" and palette.yellow3Contrast or palette.yellow3,\n special2 = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n special3 = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n },\n diag = {\n error = palette.red,\n ok = palette.green,\n warning = palette.yellow,\n info = palette.blue2,\n hint = palette.green4,\n },\n diff = {\n add = palette.diffGreen,\n delete = palette.diffRed,\n change = palette.diffBlue,\n text = palette.diffYellow,\n },\n vcs = {\n added = palette.gitGreen,\n removed = palette.gitRed,\n changed = palette.gitYellow,\n untracked = palette.gray4,\n },\n term = {\n palette.inkBg0, -- black\n palette.red3, -- red\n palette.green3, -- green\n palette.yellow3, -- yellow\n palette.blue3, -- blue\n palette.pink, -- magenta\n palette.fg, -- cyan\n palette.gray2, -- white\n palette.gray3, -- bright black\n palette.red2, -- bright red\n palette.green2, -- bright green\n palette.yellow2, -- bright yellow\n palette.blue, -- bright blue\n palette.violet, -- bright magenta\n palette.green5, -- bright cyan\n palette.fg, -- bright white\n palette.orange, -- extended color 1\n palette.orange2, -- extended color 2\n },\n }\n end,\n ---@param palette PaletteColors\n ---@param foreground? \"default\"|\"contrast\"\n ---@return ThemeColors\n pearl = function(palette, foreground)\n return {\n ui = {\n none = \"NONE\",\n fg = palette.pearlBlack0,\n fg_dim = palette.pearlBlack1,\n fg_reverse = palette.pearlGray,\n\n bg_dim = palette.pearlWhite0,\n\n bg_m3 = palette.pearlWhite0,\n bg_m2 = palette.pearlWhite0,\n bg_m1 = palette.pearlWhite0,\n bg = palette.pearlWhite0,\n bg_p1 = palette.pearlWhite1,\n bg_p2 = palette.pearlWhite1,\n\n nontext = palette.pearlViolet1,\n whitespace = palette.pearlWhite3,\n special = palette.pearlViolet2,\n indent_line = palette.pearlWhite2,\n active_indent_line = palette.pearlWhite2,\n\n bg_visual = palette.pearlWhite2,\n bg_search = palette.pearlBlue2,\n\n cursor_line_nr_foreground = palette.pearlGray4,\n cursor_line_nr_active_foreground = palette.inkBg2,\n cursor_bg = palette.fg2,\n cursor_fg = palette.inkBg2,\n\n pmenu = {\n fg = palette.pearlBlack2,\n fg_sel = \"NONE\", -- This is important to make highlights pass-through\n bg = palette.pearlWhite0,\n bg_sel = palette.pearlWhite2,\n bg_thumb = palette.pearlWhite2,\n bg_sbar = palette.pearlWhite0,\n },\n float = {\n fg = palette.pearlBlack2,\n bg = palette.pearlWhite0,\n fg_border = palette.pearlWhite2,\n bg_border = palette.pearlWhite0,\n },\n },\n syn = {\n string = foreground == \"contrast\" and palette.pearlGreenContrast or palette.pearlGreen,\n variable = \"NONE\",\n number = foreground == \"contrast\" and palette.pearlPinkContrast or palette.pearlPink,\n constant = foreground == \"contrast\" and palette.pearlOrangeContrast or palette.pearlOrange,\n identifier = foreground == \"contrast\" and palette.pearlViolet4Contrast or palette.pearlViolet4,\n parameter = foreground == \"contrast\" and palette.pearlBlue5Contrast or palette.pearlBlue5,\n fun = foreground == \"contrast\" and palette.pearlBlue4Contrast or palette.pearlBlue4,\n statement = foreground == \"contrast\" and palette.pearlViolet4Contrast or palette.pearlViolet4,\n keyword = foreground == \"contrast\" and palette.pearlViolet4Contrast or palette.pearlViolet4,\n operator = palette.pearlGray3,\n preproc = palette.pearlGray2,\n type = foreground == \"contrast\" and palette.pearlAquaContrast or palette.pearlAqua,\n regex = foreground == \"contrast\" and palette.pearlYellow2Contrast or palette.pearlYellow2,\n deprecated = palette.pearlGray3,\n comment = palette.pearlGray3,\n punct = palette.pearlGray3,\n special1 = foreground == \"contrast\" and palette.pearlYellow2Contrast or palette.pearlYellow2,\n special2 = foreground == \"contrast\" and palette.pearlViolet4Contrast or palette.pearlViolet4,\n special3 = foreground == \"contrast\" and palette.pearlViolet4Contrast or palette.pearlViolet4,\n },\n vcs = {\n added = palette.pearlGreen2,\n removed = palette.pearlRed2,\n changed = palette.pearlYellow3,\n untracked = palette.pearlGray4,\n },\n diff = {\n add = palette.pearlGreen3,\n delete = palette.pearlRed4,\n change = palette.pearlCyan,\n text = palette.pearlYellow4,\n },\n diag = {\n error = palette.pearlRed3,\n ok = palette.pearlGreen,\n warning = palette.pearlOrange2,\n info = palette.pearlTeal3,\n hint = palette.pearlAqua2,\n },\n term = {\n palette.inkBg2, -- black\n palette.pearlRed, -- red\n palette.pearlGreen, -- green\n palette.pearlYellow, -- yellow\n palette.pearlBlue4, -- blue\n palette.pearlPink, -- magenta\n palette.pearlAqua, -- cyan\n palette.pearlBlack0, -- white\n palette.pearlGray3, -- bright black\n palette.pearlRed2, -- bright red\n palette.pearlGreen2, -- bright green\n palette.pearlYellow2, -- bright yellow\n palette.pearlTeal2, -- bright blue\n palette.pearlViolet4, -- bright magenta\n palette.pearlAqua2, -- bright cyan\n palette.pearlBlack2, -- bright white\n palette.pearlOrange2, -- extended color 1\n palette.pearlRed3, -- extended color 2\n },\n }\n end,\n ---@param palette PaletteColors\n ---@param foreground? \"default\"|\"contrast\"\n ---@return ThemeColors\n mist = function(palette, foreground)\n return {\n ui = {\n none = \"NONE\",\n fg = palette.fg,\n fg_dim = palette.gray2,\n fg_reverse = palette.altBlue1,\n\n bg_dim = palette.mistBg0,\n\n bg_m3 = palette.mistBg0,\n bg_m2 = palette.mistBg0,\n bg_m1 = palette.mistBg0,\n bg = palette.mistBg0,\n bg_p1 = palette.mistBg2,\n bg_p2 = palette.mistBg2,\n\n special = palette.gray5,\n indent_line = palette.gray5,\n active_indent_line = palette.gray5,\n whitespace = palette.mistBg3,\n nontext = palette.gray5,\n\n bg_visual = palette.mistBg2,\n bg_search = palette.altBlue2,\n\n cursor_line_nr_foreground = palette.gray4,\n cursor_line_nr_active_foreground = palette.fg2,\n cursor_bg = palette.fg2,\n cursor_fg = palette.mistBg0,\n\n pmenu = {\n fg = palette.fg2,\n fg_sel = \"NONE\",\n bg = palette.mistBg0,\n bg_sel = palette.mistBg2,\n bg_thumb = palette.mistBg2,\n bg_sbar = palette.mistBg0,\n },\n\n float = {\n fg = palette.gray2,\n bg = palette.mistBg0,\n fg_border = palette.mistBg2,\n bg_border = palette.mistBg0,\n },\n },\n syn = {\n string = foreground == \"contrast\" and palette.green3Contrast or palette.green3,\n variable = \"NONE\",\n number = foreground == \"contrast\" and palette.pinkContrast or palette.pink,\n constant = foreground == \"contrast\" and palette.orangeContrast or palette.orange,\n identifier = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n parameter = palette.gray3,\n fun = foreground == \"contrast\" and palette.blue3Contrast or palette.blue3,\n statement = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n keyword = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n operator = palette.gray3,\n preproc = palette.gray3,\n type = foreground == \"contrast\" and palette.aquaContrast or palette.aqua,\n regex = foreground == \"contrast\" and palette.red3Contrast or palette.red3,\n deprecated = palette.gray,\n punct = palette.gray3,\n comment = palette.gray4,\n special1 = foreground == \"contrast\" and palette.yellow3Contrast or palette.yellow3,\n special2 = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n special3 = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n },\n diag = {\n error = palette.red,\n ok = palette.green,\n warning = palette.yellow,\n info = palette.blue2,\n hint = palette.green4,\n },\n diff = {\n add = palette.diffGreen,\n delete = palette.diffRed,\n change = palette.diffBlue,\n text = palette.diffYellow,\n },\n vcs = {\n added = palette.gitGreen,\n removed = palette.gitRed,\n changed = palette.gitYellow,\n untracked = palette.gray4,\n },\n term = {\n palette.mistBg0, -- black\n palette.red3, -- red\n palette.green3, -- green\n palette.yellow3, -- yellow\n palette.blue3, -- blue\n palette.pink, -- magenta\n palette.fg, -- cyan\n palette.gray2, -- white\n palette.gray3, -- bright black\n palette.red2, -- bright red\n palette.green2, -- bright green\n palette.yellow2, -- bright yellow\n palette.blue, -- bright blue\n palette.violet, -- bright magenta\n palette.green5, -- bright cyan\n palette.fg, -- bright white\n palette.orange, -- extended color 1\n palette.orange2, -- extended color 2\n },\n }\n end,\n}\n"], ["/kanso.nvim/lua/kanso/lib/color.lua", "local hsluv = require(\"kanso.lib.hsluv\")\n\n---@class HSLuvColor\nlocal Color = {}\nlocal Color_mt = {\n __index = Color,\n __tostring = function(self)\n return self:to_hex()\n end,\n}\n\nlocal function none_to_hex()\n return \"NONE\"\nend\n\n---Create a new HSLuv color object from a RGB hex string\n---@param hex string Hex color\n---@return HSLuvColor\nfunction Color.new(hex)\n if hex:lower() == \"none\" then\n return setmetatable({ H = 0, S = 0, L = 0, to_hex = none_to_hex }, Color_mt)\n end\n local H, S, L = unpack(hsluv.hex_to_hsluv(hex))\n return setmetatable({ H = H, S = S, L = L }, Color_mt)\nend\n\nfunction Color:to_rgb()\n return hsluv.hsluv_to_rgb({ self.H, self.S, self.L })\nend\n\nfunction Color:to_hex()\n return hsluv.hsluv_to_hex({ self.H, self.S, self.L })\nend\n\nlocal function blendRGB(a, b, r)\n local c = {}\n for i = 1, 3 do\n c[i] = math.sqrt((1 - r) * math.pow(a[i], 2) + r * math.pow(b[i], 2))\n end\n return c\nend\n\n--- Blend Color with another color (hex)\n---@param b string Hex color\n---@param r number Blend ratio [0, 1]\n---@return HSLuvColor\nfunction Color:blend(b, r)\n if b:lower() == \"none\" then\n return self\n end\n local c = blendRGB(self:to_rgb(), hsluv.hex_to_rgb(b), r)\n self.H, self.S, self.L = unpack(hsluv.rgb_to_hsluv(c))\n return self\nend\n\n---@param r number Brighten ratio [-1, 1]\n---@param bg? string background color, if light, r = -r\n---@return HSLuvColor\nfunction Color:brighten(r, bg)\n if bg and bg:lower() == \"none\" then\n return self\n end\n local bg_lightness = bg and hsluv.hex_to_hsluv(bg)[3] or 0\n r = bg_lightness > 50 and -r or r\n\n local lspace = r > 0 and 100 - self.L or self.L\n self.L = self.L + lspace * r\n return self\nend\n\n---@param r number Saturate ratio [-1, 1]\n---@return HSLuvColor\nfunction Color:saturate(r)\n local lspace = r > 0 and 100 - self.S or self.S\n self.S = self.S + lspace * r\n return self\nend\n\nlocal M = {}\nreturn setmetatable(M, {\n __call = function(_, ...)\n return Color.new(...)\n end,\n})\n"], ["/kanso.nvim/lua/kanso/highlights/lsp.lua", "local M = {}\n---@param colors KansoColors\n---@param config? KansoConfig\nfunction M.setup(colors, config)\n config = config or require(\"kanso\").config\n local theme = colors.theme\n return {\n -- [\"@lsp.type.class\"] = { link = \"Structure\" },\n -- [\"@lsp.type.decorator\"] = { link = \"Function\" },\n -- [\"@lsp.type.enum\"] = { link = \"Structure\" },\n -- [\"@lsp.type.enumMember\"] = { link = \"Constant\" },\n -- [\"@lsp.type.function\"] = { link = \"Function\" },\n -- [\"@lsp.type.interface\"] = { link = \"Structure\" },\n [\"@lsp.type.macro\"] = { link = \"Macro\" },\n [\"@lsp.type.method\"] = { link = \"@function.method\" }, -- Function\n [\"@lsp.type.namespace\"] = { link = \"@module\" }, -- Structure\n [\"@lsp.type.parameter\"] = { link = \"@variable.parameter\" }, -- Identifier\n -- [\"@lsp.type.property\"] = { link = \"Identifier\" },\n -- [\"@lsp.type.struct\"] = { link = \"Structure\" },\n -- [\"@lsp.type.type\"] = { link = \"Type\" },\n -- [\"@lsp.type.typeParameter\"] = { link = \"TypeDef\" },\n [\"@lsp.type.variable\"] = { fg = \"none\" }, -- Identifier\n [\"@lsp.type.comment\"] = { link = \"Comment\" }, -- Comment\n\n [\"@lsp.type.const\"] = { link = \"Constant\" },\n [\"@lsp.type.comparison\"] = { link = \"Operator\" },\n [\"@lsp.type.bitwise\"] = { link = \"Operator\" },\n [\"@lsp.type.punctuation\"] = { link = \"Delimiter\" },\n\n [\"@lsp.type.selfParameter\"] = { link = \"@variable.builtin\" },\n -- [\"@lsp.type.builtinConstant\"] = { link = \"@constant.builtin\" },\n [\"@lsp.type.builtinConstant\"] = { link = \"@constant.builtin\" },\n [\"@lsp.type.magicFunction\"] = { link = \"@function.builtin\" },\n\n [\"@lsp.mod.readonly\"] = { link = \"Constant\" },\n [\"@lsp.mod.typeHint\"] = { link = \"Type\" },\n -- [\"@lsp.mod.defaultLibrary\"] = { link = \"Special\" },\n -- [\"@lsp.mod.builtin\"] = { link = \"Special\" },\n\n [\"@lsp.typemod.operator.controlFlow\"] = { link = \"@keyword.exception\" }, -- rust ? operator\n [\"@lsp.type.lifetime\"] = { link = \"Operator\" },\n [\"@lsp.typemod.keyword.documentation\"] = { link = \"Special\" },\n [\"@lsp.type.decorator.rust\"] = { link = \"PreProc\" },\n\n [\"@lsp.typemod.variable.global\"] = { link = \"Constant\" },\n [\"@lsp.typemod.variable.static\"] = { link = \"Constant\" },\n [\"@lsp.typemod.variable.defaultLibrary\"] = { link = \"Special\" },\n\n [\"@lsp.typemod.function.builtin\"] = { link = \"@function.builtin\" },\n [\"@lsp.typemod.function.defaultLibrary\"] = { link = \"@function.builtin\" },\n [\"@lsp.typemod.method.defaultLibrary\"] = { link = \"@function.builtin\" },\n\n [\"@lsp.typemod.variable.injected\"] = { link = \"@variable\" },\n\n [\"@lsp.typemod.function.readonly\"] = { fg = theme.syn.fun, bold = config.bold },\n }\nend\n\nreturn M\n--vim: fdm=marker\n"], ["/kanso.nvim/lua/lualine/themes/kanso.lua", "local theme = require(\"kanso.colors\").setup().theme\n\nlocal kanso = {}\n\nkanso.normal = {\n a = { bg = theme.ui.fg, fg = theme.ui.bg },\n b = { bg = theme.ui.none, fg = theme.ui.fg },\n c = { bg = theme.ui.none, fg = theme.ui.fg },\n}\n\nkanso.insert = {\n a = { bg = theme.diag.ok, fg = theme.ui.bg },\n b = { bg = theme.ui.none, fg = theme.diag.ok },\n}\n\nkanso.command = {\n a = { bg = theme.syn.operator, fg = theme.ui.bg },\n b = { bg = theme.ui.none, fg = theme.syn.operator },\n}\n\nkanso.visual = {\n a = { bg = theme.syn.keyword, fg = theme.ui.bg },\n b = { bg = theme.ui.none, fg = theme.syn.keyword },\n}\n\nkanso.replace = {\n a = { bg = theme.syn.constant, fg = theme.ui.bg },\n b = { bg = theme.ui.none, fg = theme.syn.constant },\n}\n\nkanso.inactive = {\n a = { bg = theme.ui.none, fg = theme.ui.fg_dim },\n b = { bg = theme.ui.none, fg = theme.ui.fg_dim },\n c = { bg = theme.ui.none, fg = theme.ui.fg_dim },\n}\n\nif vim.g.kanso_lualine_bold then\n for _, mode in pairs(kanso) do\n mode.a.gui = \"bold\"\n end\nend\n\nreturn kanso\n"], ["/kanso.nvim/lua/kanso/lib/hsluv.lua", "--[[\nLua implementation of HSLuv and HPLuv color spaces\nHomepage: http://www.hsluv.org/\n\nCopyright (C) 2019 Alexei Boronine\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and\nassociated documentation files (the \"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the\nfollowing conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial\nportions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT\nLIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\nNO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n]]\n\nlocal hsluv = {}\n\nlocal hexChars = \"0123456789abcdef\"\n\nlocal distance_line_from_origin = function(line)\n return math.abs(line.intercept) / math.sqrt((line.slope ^ 2) + 1)\nend\n\nlocal length_of_ray_until_intersect = function(theta, line)\n return line.intercept / (math.sin(theta) - line.slope * math.cos(theta))\nend\n\nhsluv.get_bounds = function(l)\n local result = {}\n local sub2\n local sub1 = ((l + 16) ^ 3) / 1560896\n if sub1 > hsluv.epsilon then\n sub2 = sub1\n else\n sub2 = l / hsluv.kappa\n end\n\n for i = 1, 3 do\n local m1 = hsluv.m[i][1]\n local m2 = hsluv.m[i][2]\n local m3 = hsluv.m[i][3]\n\n for t = 0, 1 do\n local top1 = (284517 * m1 - 94839 * m3) * sub2\n local top2 = (838422 * m3 + 769860 * m2 + 731718 * m1) * l * sub2 - 769860 * t * l\n local bottom = (632260 * m3 - 126452 * m2) * sub2 + 126452 * t\n table.insert(result, {\n slope = top1 / bottom,\n intercept = top2 / bottom,\n })\n end\n end\n return result\nend\n\nhsluv.max_safe_chroma_for_l = function(l)\n local bounds = hsluv.get_bounds(l)\n local min = 1.7976931348623157e+308\n\n for i = 1, 6 do\n local length = distance_line_from_origin(bounds[i])\n if length >= 0 then\n min = math.min(min, length)\n end\n end\n return min\nend\n\nhsluv.max_safe_chroma_for_lh = function(l, h)\n local hrad = h / 360 * math.pi * 2\n local bounds = hsluv.get_bounds(l)\n local min = 1.7976931348623157e+308\n\n for i = 1, 6 do\n local bound = bounds[i]\n local length = length_of_ray_until_intersect(hrad, bound)\n if length >= 0 then\n min = math.min(min, length)\n end\n end\n return min\nend\n\nhsluv.dot_product = function(a, b)\n local sum = 0\n for i = 1, 3 do\n sum = sum + a[i] * b[i]\n end\n return sum\nend\n\nhsluv.from_linear = function(c)\n if c <= 0.0031308 then\n return 12.92 * c\n else\n return 1.055 * (c ^ 0.416666666666666685) - 0.055\n end\nend\n\nhsluv.to_linear = function(c)\n if c > 0.04045 then\n return ((c + 0.055) / 1.055) ^ 2.4\n else\n return c / 12.92\n end\nend\n\nhsluv.xyz_to_rgb = function(tuple)\n return {\n hsluv.from_linear(hsluv.dot_product(hsluv.m[1], tuple)),\n hsluv.from_linear(hsluv.dot_product(hsluv.m[2], tuple)),\n hsluv.from_linear(hsluv.dot_product(hsluv.m[3], tuple)),\n }\nend\n\nhsluv.rgb_to_xyz = function(tuple)\n local rgbl = {\n hsluv.to_linear(tuple[1]),\n hsluv.to_linear(tuple[2]),\n hsluv.to_linear(tuple[3]),\n }\n return {\n hsluv.dot_product(hsluv.minv[1], rgbl),\n hsluv.dot_product(hsluv.minv[2], rgbl),\n hsluv.dot_product(hsluv.minv[3], rgbl),\n }\nend\n\nhsluv.y_to_l = function(Y)\n if Y <= hsluv.epsilon then\n return Y / hsluv.refY * hsluv.kappa\n else\n return 116 * ((Y / hsluv.refY) ^ 0.333333333333333315) - 16\n end\nend\n\nhsluv.l_to_y = function(L)\n if L <= 8 then\n return hsluv.refY * L / hsluv.kappa\n else\n return hsluv.refY * (((L + 16) / 116) ^ 3)\n end\nend\n\nhsluv.xyz_to_luv = function(tuple)\n local X = tuple[1]\n local Y = tuple[2]\n local divider = X + 15 * Y + 3 * tuple[3]\n local varU = 4 * X\n local varV = 9 * Y\n if divider ~= 0 then\n varU = varU / divider\n varV = varV / divider\n else\n varU = 0\n varV = 0\n end\n local L = hsluv.y_to_l(Y)\n if L == 0 then\n return { 0, 0, 0 }\n end\n return { L, 13 * L * (varU - hsluv.refU), 13 * L * (varV - hsluv.refV) }\nend\n\nhsluv.luv_to_xyz = function(tuple)\n local L = tuple[1]\n local U = tuple[2]\n local V = tuple[3]\n if L == 0 then\n return { 0, 0, 0 }\n end\n local varU = U / (13 * L) + hsluv.refU\n local varV = V / (13 * L) + hsluv.refV\n local Y = hsluv.l_to_y(L)\n local X = 0 - (9 * Y * varU) / (((varU - 4) * varV) - varU * varV)\n return { X, Y, (9 * Y - 15 * varV * Y - varV * X) / (3 * varV) }\nend\n\nhsluv.luv_to_lch = function(tuple)\n local L = tuple[1]\n local U = tuple[2]\n local V = tuple[3]\n local C = math.sqrt(U * U + V * V)\n local H\n if C < 0.00000001 then\n H = 0\n else\n H = math.atan2(V, U) * 180.0 / 3.1415926535897932\n if H < 0 then\n H = 360 + H\n end\n end\n return { L, C, H }\nend\n\nhsluv.lch_to_luv = function(tuple)\n local L = tuple[1]\n local C = tuple[2]\n local Hrad = tuple[3] / 360.0 * 2 * math.pi\n return { L, math.cos(Hrad) * C, math.sin(Hrad) * C }\nend\n\nhsluv.hsluv_to_lch = function(tuple)\n local H = tuple[1]\n local S = tuple[2]\n local L = tuple[3]\n if L > 99.9999999 then\n return { 100, 0, H }\n end\n if L < 0.00000001 then\n return { 0, 0, H }\n end\n return { L, hsluv.max_safe_chroma_for_lh(L, H) / 100 * S, H }\nend\n\nhsluv.lch_to_hsluv = function(tuple)\n local L = tuple[1]\n local C = tuple[2]\n local H = tuple[3]\n local max_chroma = hsluv.max_safe_chroma_for_lh(L, H)\n if L > 99.9999999 then\n return { H, 0, 100 }\n end\n if L < 0.00000001 then\n return { H, 0, 0 }\n end\n\n return { H, C / max_chroma * 100, L }\nend\n\nhsluv.hpluv_to_lch = function(tuple)\n local H = tuple[1]\n local S = tuple[2]\n local L = tuple[3]\n if L > 99.9999999 then\n return { 100, 0, H }\n end\n if L < 0.00000001 then\n return { 0, 0, H }\n end\n return { L, hsluv.max_safe_chroma_for_l(L) / 100 * S, H }\nend\n\nhsluv.lch_to_hpluv = function(tuple)\n local L = tuple[1]\n local C = tuple[2]\n local H = tuple[3]\n if L > 99.9999999 then\n return { H, 0, 100 }\n end\n if L < 0.00000001 then\n return { H, 0, 0 }\n end\n return { H, C / hsluv.max_safe_chroma_for_l(L) * 100, L }\nend\n\nhsluv.rgb_to_hex = function(tuple)\n local h = \"#\"\n for i = 1, 3 do\n local c = math.floor(tuple[i] * 255 + 0.5)\n local digit2 = math.fmod(c, 16)\n local x = (c - digit2) / 16\n local digit1 = math.floor(x)\n h = h .. string.sub(hexChars, digit1 + 1, digit1 + 1)\n h = h .. string.sub(hexChars, digit2 + 1, digit2 + 1)\n end\n return h\nend\n\nhsluv.hex_to_rgb = function(hex)\n hex = string.lower(hex)\n local ret = {}\n for i = 0, 2 do\n local char1 = string.sub(hex, i * 2 + 2, i * 2 + 2)\n local char2 = string.sub(hex, i * 2 + 3, i * 2 + 3)\n local digit1 = string.find(hexChars, char1) - 1\n local digit2 = string.find(hexChars, char2) - 1\n ret[i + 1] = (digit1 * 16 + digit2) / 255.0\n end\n return ret\nend\n\nhsluv.lch_to_rgb = function(tuple)\n return hsluv.xyz_to_rgb(hsluv.luv_to_xyz(hsluv.lch_to_luv(tuple)))\nend\n\nhsluv.rgb_to_lch = function(tuple)\n return hsluv.luv_to_lch(hsluv.xyz_to_luv(hsluv.rgb_to_xyz(tuple)))\nend\n\nhsluv.hsluv_to_rgb = function(tuple)\n return hsluv.lch_to_rgb(hsluv.hsluv_to_lch(tuple))\nend\n\nhsluv.rgb_to_hsluv = function(tuple)\n return hsluv.lch_to_hsluv(hsluv.rgb_to_lch(tuple))\nend\n\nhsluv.hpluv_to_rgb = function(tuple)\n return hsluv.lch_to_rgb(hsluv.hpluv_to_lch(tuple))\nend\n\nhsluv.rgb_to_hpluv = function(tuple)\n return hsluv.lch_to_hpluv(hsluv.rgb_to_lch(tuple))\nend\n\nhsluv.hsluv_to_hex = function(tuple)\n return hsluv.rgb_to_hex(hsluv.hsluv_to_rgb(tuple))\nend\n\nhsluv.hpluv_to_hex = function(tuple)\n return hsluv.rgb_to_hex(hsluv.hpluv_to_rgb(tuple))\nend\n\nhsluv.hex_to_hsluv = function(s)\n return hsluv.rgb_to_hsluv(hsluv.hex_to_rgb(s))\nend\n\nhsluv.hex_to_hpluv = function(s)\n return hsluv.rgb_to_hpluv(hsluv.hex_to_rgb(s))\nend\n\nhsluv.m = {\n { 3.240969941904521, -1.537383177570093, -0.498610760293 },\n { -0.96924363628087, 1.87596750150772, 0.041555057407175 },\n { 0.055630079696993, -0.20397695888897, 1.056971514242878 },\n}\nhsluv.minv = {\n { 0.41239079926595, 0.35758433938387, 0.18048078840183 },\n { 0.21263900587151, 0.71516867876775, 0.072192315360733 },\n { 0.019330818715591, 0.11919477979462, 0.95053215224966 },\n}\nhsluv.refY = 1.0\nhsluv.refU = 0.19783000664283\nhsluv.refV = 0.46831999493879\nhsluv.kappa = 903.2962962\nhsluv.epsilon = 0.0088564516\n\nreturn hsluv\n"], ["/kanso.nvim/lua/kanso/highlights/plugins.lua", "local M = {}\n\n---@param colors KansoColors\n---@param config? KansoConfig\nfunction M.setup(colors, config)\n config = config or require(\"kanso\").config\n local theme = colors.theme\n\n return {\n -- Neovcs\n -- NeovcsBranch = {},\n -- NeovcsRemote = {},\n -- NeovcsDiffDelete = { fg = theme.vcs.removed, bg = theme.diff.delete },\n -- NeovcsDiffAdd = { fg = theme.vcs.added, bg = theme.diff.add },\n -- NeovcsHunkHeader = { fg = theme.syn.identifier },\n -- NeovcsDiffContextHighlight = { bg = theme.diff.change },\n\n -- vcsSigns\n -- vcsSignsAdd = { link = \"diffAdded\" },\n -- vcsSignsChange = { link = \"diffChanged\" },\n -- vcsSignsDelete = { link = \"diffDeleted\" },\n -- vcsSignsDeleteLn = { bg = theme.diff.delete },\n\n -- Gitsigns\n GitSignsAdd = { fg = theme.vcs.added, bg = theme.ui.none },\n GitSignsChange = { fg = theme.vcs.changed, bg = theme.ui.none },\n GitSignsDelete = { fg = theme.vcs.removed, bg = theme.ui.none },\n GitSignsChangedelete = { fg = theme.vcs.removed, bg = theme.ui.none },\n GitSignsTopdelete = { fg = theme.vcs.removed, bg = theme.ui.none },\n GitSignsUntracked = { fg = theme.vcs.untracked, bg = theme.ui.none },\n\n -- Neogit\n NeogitDiffContextHighlight = { bg = theme.diff.change }, --[[ guibg=#333333 guifg=#b2b2b2 ]]\n NeogitHunkHeader = { fg = theme.syn.fun }, --[[ guifg=#cccccc guibg=#404040 ]]\n NeogitHunkHeaderHighlight = { fg = theme.syn.constant, bg = theme.diff.change }, --[[ guifg=#cccccc guibg=#4d4d4d ]]\n NeogitDiffAddHighlight = { bg = theme.diff.add },\n NeogitDiffDeleteHighlight = { bg = theme.diff.delete },\n -- TreeSitter Extensions\n TreesitterContext = { link = \"Folded\" },\n TreesitterContextLineNumber = { fg = theme.ui.special, bg = theme.ui.none },\n -- Telescope\n TelescopeBorder = { fg = theme.ui.float.fg_border, bg = config.transparent and theme.ui.none or theme.ui.bg },\n TelescopeTitle = { fg = theme.ui.special },\n TelescopeSelection = { link = \"CursorLine\" },\n TelescopeSelectionCaret = { link = \"CursorLineNr\" },\n TelescopeResultsClass = { link = \"Structure\" },\n TelescopeResultsStruct = { link = \"Structure\" },\n TelescopeResultsField = { link = \"@field\" },\n TelescopeResultsMethod = { link = \"Function\" },\n TelescopeResultsVariable = { link = \"@variable\" },\n -- NvimTree\n NvimTreeNormal = { link = \"Normal\" },\n NvimTreeNormalNC = { link = \"NvimTreeNormal\" },\n NvimTreeRootFolder = { fg = theme.syn.identifier, bold = config.bold },\n NvimTreeGitDirty = { fg = theme.vcs.changed },\n NvimTreeGitNew = { fg = theme.vcs.added },\n NvimTreeGitDeleted = { fg = theme.vcs.removed },\n NvimTreeGitStaged = { fg = theme.vcs.added },\n NvimTreeSpecialFile = { fg = theme.syn.special1 },\n -- NvimTreeIndentMarker = {},\n NvimTreeImageFile = { fg = theme.syn.special2 },\n NvimTreeSymlink = { link = \"Type\" },\n NvimTreeFolderName = { link = \"Directory\" },\n NvimTreeExecFile = { fg = theme.syn.string, bold = config.bold },\n NvimTreeOpenedFile = { fg = theme.syn.special1, italic = config.italics },\n NvimTreeWinSeparator = { link = \"WinSeparator\" },\n NvimTreeWindowPicker = {\n bg = config.transparent and theme.ui.none or theme.ui.bg_m1,\n fg = theme.syn.special1,\n bold = config.bold,\n },\n -- NeoTree\n NeoTreeTabInactive = { fg = theme.ui.special, bg = config.transparent and theme.ui.none or theme.ui.bg },\n NeoTreeTabActive = {\n fg = theme.ui.fg_dim,\n bg = config.transparent and theme.ui.none or theme.ui.bg_p1,\n bold = config.bold,\n },\n NeoTreeTabSeparatorInactive = {\n fg = theme.ui.special,\n bg = config.transparent and theme.ui.none or theme.ui.bg,\n },\n NeoTreeTabSeparatorActive = {\n fg = theme.ui.fg_dim,\n bg = config.transparent and theme.ui.none or theme.ui.bg_p1,\n },\n NeoTreeRootName = { fg = theme.syn.identifier, bold = config.bold },\n NeoTreeModified = { link = \"String\" },\n NeoTreeNormal = { link = \"Normal\" },\n NeoTreeNormalNC = { link = \"Normal\" },\n NeoTreeTitleBar = { link = \"Title\" },\n NeoTreeDimText = { fg = theme.ui.fg_dim },\n NeoTreeGitModified = { fg = theme.vcs.changed },\n NeoTreeGitAdded = { fg = theme.vcs.added },\n NeoTreeGitDeleted = { fg = theme.vcs.removed },\n NeoTreeGitStaged = { fg = theme.vcs.added },\n NeoTreeGitConflict = { fg = theme.diag.error },\n NeoTreeGitUntracked = { link = \"NeoTreeGitModified\", default = true },\n NeoTreeGitUnstaged = { link = \"NeoTreeGitModified\", default = true },\n NeoTreeIndentMarker = { link = \"NonText\" },\n -- WindowPicker\n -- NvimWindowSwitch = { bg = theme.ui.bg_m3, fg = theme.diag.warning },\n -- NvimWindowSwitchNC = { link = \"NvimWindowSwitch\" },\n -- Dashboard\n DashboardShortCut = { fg = theme.syn.special1 },\n DashboardHeader = { fg = theme.vcs.removed },\n DashboardCenter = { fg = theme.syn.identifier },\n DashboardFooter = { fg = theme.syn.comment },\n DashboardDesc = { fg = theme.syn.identifier },\n DashboardKey = { fg = theme.syn.special1 },\n DashboardIcon = { fg = theme.ui.special },\n -- Notify\n NotifyBackground = { bg = config.transparent and theme.ui.none or theme.ui.bg },\n NotifyERRORBorder = { link = \"DiagnosticError\" },\n NotifyWARNBorder = { link = \"DiagnosticWarn\" },\n NotifyINFOBorder = { link = \"DiagnosticInfo\" },\n NotifyHINTBorder = { link = \"DiagnosticHint\" },\n NotifyDEBUGBorder = { link = \"Debug\" },\n NotifyTRACEBorder = { link = \"Comment\" },\n NotifyERRORIcon = { link = \"DiagnosticError\" },\n NotifyWARNIcon = { link = \"DiagnosticWarn\" },\n NotifyINFOIcon = { link = \"DiagnosticInfo\" },\n NotifyHINTIcon = { link = \"DiagnosticHint\" },\n NotifyDEBUGIcon = { link = \"Debug\" },\n NotifyTRACEIcon = { link = \"Comment\" },\n NotifyERRORTitle = { link = \"DiagnosticError\" },\n NotifyWARNTitle = { link = \"DiagnosticWarn\" },\n NotifyINFOTitle = { link = \"DiagnosticInfo\" },\n NotifyHINTTitle = { link = \"DiagnosticHint\" },\n NotifyDEBUGTitle = { link = \"Debug\" },\n NotifyTRACETitle = { link = \"Comment\" },\n -- Dap-UI\n -- DapUIVariable = { link = \"Normal\" },\n DapUIScope = { link = \"Special\" }, -- guifg=#00F1F5\"\n DapUIType = { link = \"Type\" }, -- guifg=#D484FF\"\n -- DapUIValue = { link = \"Normal\" },\n DapUIModifiedValue = { fg = theme.syn.special1, bold = config.bold }, -- guifg=#00F1F5 gui=bold\"\n DapUIDecoration = { fg = theme.ui.float.fg_border }, -- guifg=#00F1F5\"\n DapUIThread = { fg = theme.syn.identifier }, --guifg=#A9FF68\"\n DapUIStoppedThread = { fg = theme.syn.special1 }, --guifg=#00f1f5\"\n -- DapUIFrameName = { link = \"Normal\"},\n DapUISource = { fg = theme.syn.special2 }, -- guifg=#D484FF\"\n DapUILineNumber = { fg = theme.syn.special1 }, -- guifg=#00f1f5\"\n DapUIFloatBorder = { fg = theme.ui.float.fg_border }, -- guifg=#00F1F5\"\n DapUIWatchesEmpty = { fg = theme.diag.error }, -- guifg=#F70067\"\n DapUIWatchesValue = { fg = theme.syn.identifier }, -- guifg=#A9FF68\"\n DapUIWatchesError = { fg = theme.diag.error }, --guifg=#F70067\"\n DapUIBreakpointsPath = { link = \"Directory\" }, --guifg=#00F1F5\"\n DapUIBreakpointsInfo = { fg = theme.diag.info }, --guifg=#A9FF68\"\n DapUIBreakpointsCurrentLine = { fg = theme.syn.identifier, bold = config.bold }, --guifg=#A9FF68 gui=bold\"\n -- DapUIBreakpointsLine = {}, -- DapUILineNumber\"\n DapUIBreakpointsDisabledLine = { link = \"Comment\" }, --guifg=#424242\"\n -- DapUICurrentFrameName = {}, -- DapUIBreakpointsCurrentLine\"\n DapUIStepOver = { fg = theme.syn.special1 }, --guifg=#00f1f5\"\n DapUIStepInto = { fg = theme.syn.special1 }, --guifg=#00f1f5\"\n DapUIStepBack = { fg = theme.syn.special1 }, --guifg=#00f1f5\"\n DapUIStepOut = { fg = theme.syn.special1 }, --guifg=#00f1f5\"\n DapUIStop = { fg = theme.diag.error }, --guifg=#F70067\"\n DapUIPlayPause = { fg = theme.syn.string }, --guifg=#A9FF68\"\n DapUIRestart = { fg = theme.syn.string }, --guifg=#A9FF68\"\n DapUIUnavailable = { fg = theme.syn.comment }, --guifg=#424242\"\n -- Floaterm\n FloatermBorder = { fg = theme.ui.float.fg_border, bg = config.transparent and theme.ui.none or theme.ui.bg },\n -- NeoVim = {},\n healthError = { fg = theme.diag.error },\n healthSuccess = { fg = theme.diag.ok },\n healthWarning = { fg = theme.diag.warning },\n -- Cmp\n CmpDocumentation = { link = \"NormalFloat\" },\n CmpDocumentationBorder = { link = \"FloatBorder\" },\n CmpCompletion = { link = \"Pmenu\" },\n CmpCompletionSel = { link = \"PmenuSel\" },\n CmpCompletionBorder = { fg = theme.ui.bg_search, bg = theme.ui.pmenu.bg },\n CmpCompletionThumb = { link = \"PmenuThumb\" },\n CmpCompletionSbar = { link = \"PmenuSbar\" },\n CmpItemAbbr = { fg = theme.ui.pmenu.fg },\n CmpItemAbbrDeprecated = { fg = theme.syn.comment, strikethrough = true },\n CmpItemAbbrMatch = { fg = theme.syn.fun },\n CmpItemAbbrMatchFuzzy = { link = \"CmpItemAbbrMatch\" },\n CmpItemKindDefault = { fg = theme.ui.fg_dim },\n CmpItemMenu = { fg = theme.ui.fg_dim },\n CmpGhostText = { fg = theme.syn.comment },\n\n CmpItemKindText = { fg = theme.ui.fg },\n CmpItemKindMethod = { link = \"@function.method\" },\n CmpItemKindFunction = { link = \"Function\" },\n CmpItemKindConstructor = { link = \"@constructor\" },\n CmpItemKindField = { link = \"@variable.member\" },\n CmpItemKindVariable = { fg = theme.ui.fg_dim },\n CmpItemKindClass = { link = \"Type\" },\n CmpItemKindInterface = { link = \"Type\" },\n CmpItemKindModule = { link = \"@module\" },\n CmpItemKindProperty = { link = \"@property\" },\n CmpItemKindUnit = { link = \"Number\" },\n CmpItemKindValue = { link = \"String\" },\n CmpItemKindEnum = { link = \"Type\" },\n CmpItemKindKeyword = { link = \"Keyword\" },\n CmpItemKindSnippet = { link = \"Special\" },\n CmpItemKindColor = { link = \"Special\" },\n CmpItemKindFile = { link = \"Directory\" },\n CmpItemKindReference = { link = \"Special\" },\n CmpItemKindFolder = { link = \"Directory\" },\n CmpItemKindEnumMember = { link = \"Constant\" },\n CmpItemKindConstant = { link = \"Constant\" },\n CmpItemKindStruct = { link = \"Type\" },\n CmpItemKindEvent = { link = \"Type\" },\n CmpItemKindOperator = { link = \"Operator\" },\n CmpItemKindTypeParameter = { link = \"Type\" },\n CmpItemKindCopilot = { link = \"String\" },\n\n -- blink.cmp\n BlinkCmpMenu = { link = \"Pmenu\" },\n BlinkCmpMenuSelection = { link = \"PmenuSel\" },\n BlinkCmpMenuBorder = { fg = theme.ui.bg_search, bg = theme.ui.pmenu.bg },\n BlinkCmpScrollBarThumb = { link = \"PmenuThumb\" },\n BlinkCmpScrollBarGutter = { link = \"PmenuSbar\" },\n BlinkCmpLabel = { fg = theme.ui.pmenu.fg },\n BlinkCmpLabelMatch = { fg = theme.syn.fun },\n BlinkCmpLabelDetails = { fg = theme.syn.comment },\n BlinkCmpLabelDeprecated = { fg = theme.syn.comment, strikethrough = true },\n BlinkCmpGhostText = { fg = theme.syn.comment },\n BlinkCmpDoc = { link = \"NormalFloat\" },\n BlinkCmpDocBorder = { link = \"FloatBorder\" },\n BlinkCmpDocCursorLine = { link = \"Visual\" },\n BlinkCmpSignatureHelp = { link = \"NormalFloat\" },\n BlinkCmpSignatureHelpBorder = { link = \"FloatBorder\" },\n BlinkCmpSignatureHelpActiveParameter = { link = \"LspSignatureActiveParameter\" },\n\n BlinkCmpKind = { fg = theme.ui.fg_dim },\n BlinkCmpKindText = { fg = theme.ui.fg },\n BlinkCmpKindMethod = { link = \"@function.method\" },\n BlinkCmpKindFunction = { link = \"Function\" },\n BlinkCmpKindConstructor = { link = \"@constructor\" },\n BlinkCmpKindField = { link = \"@variable.member\" },\n BlinkCmpKindVariable = { fg = theme.ui.fg_dim },\n BlinkCmpKindClass = { link = \"Type\" },\n BlinkCmpKindInterface = { link = \"Type\" },\n BlinkCmpKindModule = { link = \"@module\" },\n BlinkCmpKindProperty = { link = \"@property\" },\n BlinkCmpKindUnit = { link = \"Number\" },\n BlinkCmpKindValue = { link = \"String\" },\n BlinkCmpKindEnum = { link = \"Type\" },\n BlinkCmpKindKeyword = { link = \"Keyword\" },\n BlinkCmpKindSnippet = { link = \"Special\" },\n BlinkCmpKindColor = { link = \"Special\" },\n BlinkCmpKindFile = { link = \"Directory\" },\n BlinkCmpKindReference = { link = \"Special\" },\n BlinkCmpKindFolder = { link = \"Directory\" },\n BlinkCmpKindEnumMember = { link = \"Constant\" },\n BlinkCmpKindConstant = { link = \"Constant\" },\n BlinkCmpKindStruct = { link = \"Type\" },\n BlinkCmpKindEvent = { link = \"Type\" },\n BlinkCmpKindOperator = { link = \"Operator\" },\n BlinkCmpKindTypeParameter = { link = \"Type\" },\n BlinkCmpKindCopilot = { link = \"String\" },\n\n -- IndentBlankline\n IndentBlanklineChar = { fg = theme.ui.indent_line, nocombine = true },\n IndentBlanklineSpaceChar = { fg = theme.ui.indent_line, nocombine = true },\n IndentBlanklineSpaceCharBlankline = { fg = theme.ui.indent_line, nocombine = true },\n IndentBlanklineContextChar = { fg = theme.ui.active_indent_line, nocombine = true },\n IndentBlanklineContextStart = { sp = theme.ui.active_indent_line, underline = true, nocombine = true },\n IblIndent = { fg = theme.ui.indent_line, nocombine = true },\n IblWhitespace = { fg = theme.ui.indent_line, nocombine = true },\n IblScope = { fg = theme.ui.active_indent_line, nocombine = true },\n -- Other indent plugins\n IndentLine = { fg = theme.ui.indent_line, nocombine = true },\n Indent = { fg = theme.ui.indent_line, nocombine = true },\n IndentGuide = { fg = theme.ui.indent_line, nocombine = true },\n IndentGuidesOdd = { fg = theme.ui.indent_line, nocombine = true },\n IndentGuidesEven = { fg = theme.ui.indent_line, nocombine = true },\n -- Lazy\n LazyProgressTodo = { fg = theme.ui.nontext },\n\n -- Trouble\n TroubleIndent = { fg = theme.ui.whitespace },\n TroublePos = { fg = theme.ui.special },\n\n -- Nvim-Navic\n NavicIconsFile = { link = \"Directory\" },\n NavicIconsModule = { link = \"@module\" },\n NavicIconsNamespace = { link = \"@module\" },\n NavicIconsPackage = { link = \"@module\" },\n NavicIconsClass = { link = \"Type\" },\n NavicIconsMethod = { link = \"@function.method\" },\n NavicIconsProperty = { link = \"@property\" },\n NavicIconsField = { link = \"@variable.member\" },\n NavicIconsConstructor = { link = \"@constructor\" },\n NavicIconsEnum = { link = \"Type\" },\n NavicIconsInterface = { link = \"Type\" },\n NavicIconsFunction = { link = \"Function\" },\n NavicIconsVariable = { link = \"@variable\" },\n NavicIconsConstant = { link = \"Constant\" },\n NavicIconsString = { link = \"String\" },\n NavicIconsNumber = { link = \"Number\" },\n NavicIconsBoolean = { link = \"Boolean\" },\n NavicIconsArray = { link = \"Type\" },\n NavicIconsObject = { link = \"Type\" },\n NavicIconsKey = { link = \"Identifier\" },\n NavicIconsNull = { link = \"Type\" },\n NavicIconsEnumMember = { link = \"Constant\" },\n NavicIconsStruct = { link = \"Structure\" },\n NavicIconsEvent = { link = \"Structure\" },\n NavicIconsOperator = { link = \"Operator\" },\n NavicIconsTypeParameter = { link = \"Type\" },\n NavicText = { fg = theme.ui.fg },\n NavicSeparator = { fg = theme.ui.fg },\n\n -- Aerial icons\n AerialFileIcon = { link = \"Directory\" },\n AerialModuleIcon = { link = \"@module\" },\n AerialNamespaceIcon = { link = \"@module\" },\n AerialPackageIcon = { link = \"@module\" },\n AerialClassIcon = { link = \"Type\" },\n AerialMethodIcon = { link = \"@function.method\" },\n AerialPropertyIcon = { link = \"@property\" },\n AerialFieldIcon = { link = \"@variable.member\" },\n AerialConstructorIcon = { link = \"@constructor\" },\n AerialEnumIcon = { link = \"Type\" },\n AerialInterfaceIcon = { link = \"Type\" },\n AerialFunctionIcon = { link = \"Function\" },\n AerialVariableIcon = { link = \"@variable\" },\n AerialConstantIcon = { link = \"Constant\" },\n AerialStringIcon = { link = \"String\" },\n AerialNumberIcon = { link = \"Number\" },\n AerialBooleanIcon = { link = \"Boolean\" },\n AerialArrayIcon = { link = \"Type\" },\n AerialObjectIcon = { link = \"Type\" },\n AerialKeyIcon = { link = \"Identifier\" },\n AerialNullIcon = { link = \"Type\" },\n AerialEnumMemberIcon = { link = \"Constant\" },\n AerialStructIcon = { link = \"Structure\" },\n AerialEventIcon = { link = \"Structure\" },\n AerialOperatorIcon = { link = \"Operator\" },\n AerialTypeParameterIcon = { link = \"Type\" },\n\n -- Mini\n MiniAnimateCursor = { reverse = true, nocombine = true },\n MiniAnimateNormalFloat = { link = \"NormalFloat\" },\n\n MiniClueBorder = { link = \"FloatBorder\" },\n MiniClueDescGroup = { link = \"DiagnosticFloatingWarn\" },\n MiniClueDescSingle = { link = \"NormalFloat\" },\n MiniClueNextKey = { link = \"DiagnosticFloatingHint\" },\n MiniClueNextKeyWithPostkeys = { link = \"DiagnosticFloatingError\" },\n MiniClueSeparator = { link = \"DiagnosticFloatingInfo\" },\n MiniClueTitle = { link = \"FloatTitle\" },\n\n MiniCompletionActiveParameter = { underline = true },\n\n MiniCursorword = { underline = true },\n MiniCursorwordCurrent = { underline = true },\n\n MiniDepsChangeAdded = { link = \"diffAdded\" },\n MiniDepsChangeRemoved = { link = \"diffRemoved\" },\n MiniDepsHint = { fg = theme.diag.hint },\n MiniDepsInfo = { fg = theme.diag.info },\n MiniDepsMsgBreaking = { fg = theme.diag.warning },\n MiniDepsPlaceholder = { link = \"Comment\" },\n MiniDepsTitle = { link = \"Title\" },\n MiniDepsTitleError = { link = \"DiffDelete\" },\n MiniDepsTitleSame = { link = \"DiffText\" },\n MiniDepsTitleUpdate = { link = \"DiffAdd\" },\n\n MiniDiffSignAdd = { fg = theme.vcs.added, bg = theme.ui.none },\n MiniDiffSignChange = { fg = theme.vcs.changed, bg = theme.ui.none },\n MiniDiffSignDelete = { fg = theme.vcs.removed, bg = theme.ui.none },\n MiniDiffOverAdd = { link = \"DiffAdd\" },\n MiniDiffOverChange = { link = \"DiffText\" },\n MiniDiffOverContext = { link = \"DiffChange\" },\n MiniDiffOverDelete = { link = \"DiffDelete\" },\n\n MiniFilesBorder = { link = \"FloatBorder\" },\n MiniFilesBorderModified = { link = \"DiagnosticFloatingWarn\" },\n MiniFilesCursorLine = { link = \"CursorLine\" },\n MiniFilesDirectory = { link = \"Directory\" },\n MiniFilesFile = { fg = theme.ui.fg },\n MiniFilesNormal = { link = \"NormalFloat\" },\n MiniFilesTitle = {\n fg = theme.ui.special,\n bg = config.transparent and theme.ui.none or theme.ui.float.bg_border,\n bold = config.bold,\n },\n MiniFilesTitleFocused = {\n fg = theme.ui.fg,\n bg = config.transparent and theme.ui.none or theme.ui.float.bg_border,\n bold = config.bold,\n },\n\n MiniHipatternsFixme = { fg = theme.ui.bg, bg = theme.diag.error, bold = config.bold },\n MiniHipatternsHack = { fg = theme.ui.bg, bg = theme.diag.warning, bold = config.bold },\n MiniHipatternsNote = { fg = theme.ui.bg, bg = theme.diag.info, bold = config.bold },\n MiniHipatternsTodo = { fg = theme.ui.bg, bg = theme.diag.hint, bold = config.bold },\n\n MiniIconsAzure = { fg = theme.syn.special1 },\n MiniIconsBlue = { fg = theme.syn.fun },\n MiniIconsCyan = { fg = theme.syn.type },\n MiniIconsGreen = { fg = theme.syn.string },\n MiniIconsGrey = { fg = theme.ui.fg },\n MiniIconsOrange = { fg = theme.syn.constant },\n MiniIconsPurple = { fg = theme.syn.keyword },\n MiniIconsRed = { fg = theme.syn.special3 },\n MiniIconsYellow = { fg = theme.syn.identifier },\n\n MiniIndentscopeSymbol = { fg = theme.syn.special1 },\n MiniIndentscopePrefix = { nocombine = true }, -- Make it invisible\n\n MiniJump = { link = \"SpellRare\" },\n\n MiniJump2dDim = { link = \"Comment\" },\n MiniJump2dSpot = { fg = theme.syn.constant, bold = config.bold, nocombine = true },\n MiniJump2dSpotAhead = { fg = theme.diag.hint, bg = theme.ui.bg_dim, nocombine = true },\n MiniJump2dSpotUnique = { fg = theme.syn.special1, bold = config.bold, nocombine = true },\n\n MiniMapNormal = { link = \"NormalFloat\" },\n MiniMapSymbolCount = { link = \"Special\" },\n MiniMapSymbolLine = { link = \"Title\" },\n MiniMapSymbolView = { link = \"Delimiter\" },\n\n MiniNotifyBorder = { link = \"FloatBorder\" },\n MiniNotifyNormal = { link = \"NormalFloat\" },\n MiniNotifyTitle = { link = \"FloatTitle\" },\n\n MiniOperatorsExchangeFrom = { link = \"IncSearch\" },\n\n MiniPickBorder = { link = \"FloatBorder\" },\n MiniPickBorderBusy = { link = \"DiagnosticFloatingWarn\" },\n MiniPickBorderText = { link = \"FloatTitle\" },\n MiniPickIconDirectory = { link = \"Directory\" },\n MiniPickIconFile = { link = \"MiniPickNormal\" },\n MiniPickHeader = { link = \"DiagnosticFloatingHint\" },\n MiniPickMatchCurrent = { link = \"CursorLine\" },\n MiniPickMatchMarked = { link = \"Visual\" },\n MiniPickMatchRanges = { link = \"DiagnosticFloatingHint\" },\n MiniPickNormal = { link = \"NormalFloat\" },\n MiniPickPreviewLine = { link = \"CursorLine\" },\n MiniPickPreviewRegion = { link = \"IncSearch\" },\n MiniPickPrompt = { fg = theme.syn.fun, bg = config.transparent and theme.ui.none or theme.ui.float.bg_border },\n\n MiniStarterCurrent = { nocombine = true },\n MiniStarterFooter = { fg = theme.syn.deprecated },\n MiniStarterHeader = { link = \"Title\" },\n MiniStarterInactive = { link = \"Comment\" },\n MiniStarterItem = { link = \"Normal\" },\n MiniStarterItemBullet = { link = \"Delimiter\" },\n MiniStarterItemPrefix = { fg = theme.diag.warning },\n MiniStarterSection = { fg = theme.diag.ok },\n MiniStarterQuery = { fg = theme.diag.info },\n\n MiniStatuslineDevinfo = { fg = theme.ui.fg_dim, bg = config.transparent and theme.ui.none or theme.ui.bg_p1 },\n MiniStatuslineFileinfo = { fg = theme.ui.fg_dim, bg = config.transparent and theme.ui.none or theme.ui.bg_p1 },\n MiniStatuslineFilename = { fg = theme.ui.fg_dim, bg = config.transparent and theme.ui.none or theme.ui.bg_dim },\n MiniStatuslineInactive = { link = \"StatusLineNC\" },\n MiniStatuslineModeCommand = { fg = theme.ui.bg, bg = theme.syn.operator, bold = config.bold },\n MiniStatuslineModeInsert = { fg = theme.ui.bg, bg = theme.diag.ok, bold = config.bold },\n MiniStatuslineModeNormal = { fg = theme.ui.bg_m3, bg = theme.syn.fun, bold = config.bold },\n MiniStatuslineModeOther = { fg = theme.ui.bg, bg = theme.syn.type, bold = config.bold },\n MiniStatuslineModeReplace = { fg = theme.ui.bg, bg = theme.syn.constant, bold = config.bold },\n MiniStatuslineModeVisual = { fg = theme.ui.bg, bg = theme.syn.keyword, bold = config.bold },\n\n MiniSurround = { link = \"IncSearch\" },\n\n MiniTablineCurrent = {\n fg = theme.ui.fg_dim,\n bg = config.transparent and theme.ui.none or theme.ui.bg_p1,\n bold = config.bold,\n },\n MiniTablineFill = { link = \"TabLineFill\" },\n MiniTablineHidden = { fg = theme.ui.special, bg = theme.ui.bg_m3 },\n MiniTablineModifiedCurrent = { fg = theme.ui.bg_p1, bg = theme.ui.fg_dim, bold = config.bold },\n MiniTablineModifiedHidden = { fg = theme.ui.bg_m3, bg = theme.ui.special },\n MiniTablineModifiedVisible = { fg = theme.ui.bg_m3, bg = theme.ui.special, bold = config.bold },\n MiniTablineTabpagesection = { fg = theme.ui.fg, bg = theme.ui.bg_search, bold = config.bold },\n MiniTablineVisible = { fg = theme.ui.special, bg = theme.ui.bg_m3, bold = config.bold },\n\n MiniTestEmphasis = { bold = config.bold },\n MiniTestFail = { fg = theme.diag.error, bold = config.bold },\n MiniTestPass = { fg = theme.diag.ok, bold = config.bold },\n\n MiniTrailspace = { bg = theme.vcs.removed },\n\n NeotestAdapterName = { fg = theme.syn.special3 },\n NeotestDir = { fg = theme.syn.fun },\n NeotestExpandMarker = { fg = theme.syn.punct, bold = config.bold },\n NeotestFailed = { fg = theme.diag.error },\n NeotestFile = { fg = theme.syn.fun },\n NeotestFocused = { bold = config.bold, underline = true },\n NeotestIndent = { fg = theme.ui.special, bold = config.bold },\n NeotestMarked = { fg = theme.diag.warning, italic = config.italics },\n NeotestNamespace = { fg = theme.syn.fun },\n NeotestPassed = { fg = theme.diag.ok },\n NeotestRunning = { fg = theme.vcs.changed },\n NeotestWinSelect = { fg = theme.diag.hint },\n NeotestSkipped = { fg = theme.syn.special1 },\n NeotestTarget = { fg = theme.syn.special3 },\n NeotestTest = { fg = theme.ui.float.fg },\n NeotestUnknown = { fg = theme.syn.deprecated },\n NeotestWatching = { fg = theme.vcs.changed },\n\n SnacksPicker = { bg = config.transparent and theme.ui.none or theme.ui.bg },\n SnacksPickerTitle = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },\n SnacksPickerBorder = { fg = theme.ui.none, bg = theme.ui.none },\n SnacksPickerNormal = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },\n SnacksPickerMatch = { fg = theme.ui.fg },\n SnacksPickerCursor = { fg = theme.ui.bg, bg = theme.ui.bg },\n SnacksPickerPrompt = { fg = theme.ui.fg },\n SnacksPickerDim = { fg = theme.ui.fg_dim },\n SnacksInputIcon = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },\n SnacksIndent = { fg = theme.ui.indent_line, nocombine = true },\n SnacksIndentChunk = { fg = theme.ui.active_indent_line, nocombine = true },\n SnacksIndentScope = { fg = theme.ui.active_indent_line, nocombine = true },\n SnacksPickerListCursorLine = { fg = theme.ui.fg, bg = theme.ui.bg_p2 },\n SnacksPickerInputBorder = { fg = theme.ui.none, bg = theme.ui.none },\n SnacksPickerInputTitle = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },\n SnacksPickerBoxTitle = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },\n SnacksPickerSelected = { fg = theme.ui.bg },\n SnacksPickerPickWinCurrent = {\n fg = theme.ui.fg,\n bg = config.transparent and theme.ui.none or theme.ui.bg,\n bold = config.bold,\n },\n SnacksPickerPickWin = {\n fg = theme.ui.fg,\n bg = config.transparent and theme.ui.none or theme.ui.bg_search,\n bold = config.bold,\n },\n\n BufferLineBackground = { fg = theme.ui.none, bg = theme.ui.none },\n BufferLineBuffer = { fg = theme.ui.none, bg = theme.ui.none },\n BufferLineBufferSelected = { bg = theme.ui.none, fg = theme.ui.fg },\n BufferLineBufferVisible = { bg = theme.ui.none },\n BufferLineCloseButton = { bg = theme.ui.none },\n BufferLineCloseButtonSelected = { bg = theme.ui.none },\n BufferLineCloseButtonVisible = { bg = theme.ui.none },\n BufferLineDuplicate = { bg = theme.ui.none },\n BufferLineDuplicateSelected = { bg = theme.ui.none },\n BufferLineDuplicateVisible = { bg = theme.ui.none },\n BufferLineError = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineErrorDiagnostic = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineErrorDiagnosticSelected = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineErrorDiagnosticVisible = { bg = theme.ui.none },\n BufferLineErrorSelected = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineErrorVisible = { bg = theme.ui.none },\n BufferLineFill = { bg = theme.ui.none },\n BufferLineHint = { sp = theme.ui.none, bg = theme.ui.none },\n BufferLineHintDiagnostic = { sp = theme.ui.none, bg = theme.ui.none },\n BufferLineHintDiagnosticSelected = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineHintDiagnosticVisible = { bg = theme.ui.none },\n BufferLineHintSelected = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineHintVisible = { bg = theme.ui.none },\n BufferLineInfo = { sp = theme.ui.none, bg = theme.ui.none },\n BufferLineInfoDiagnostic = { sp = theme.ui.none, bg = theme.ui.none },\n BufferLineInfoDiagnosticSelected = { sp = theme.ui.none, bg = theme.ui.none },\n BufferLineInfoDiagnosticVisible = { bg = theme.ui.none },\n BufferLineInfoSelected = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineInfoVisible = { bg = theme.ui.none },\n BufferLineIndicatorSelected = { bg = theme.ui.none },\n BufferLineModified = { bg = theme.ui.none },\n BufferLineModifiedSelected = { bg = theme.ui.none },\n BufferLineModifiedVisible = { bg = theme.ui.none },\n BufferLineNumbers = { bg = theme.ui.none },\n BufferLineNumbersSelected = { bg = theme.ui.none },\n BufferLineNumbersVisible = { bg = theme.ui.none },\n BufferLineOffsetSeparator = { bg = theme.ui.none },\n BufferLineSeparator = { bg = theme.ui.none },\n BufferLineSeparatorSelected = { bg = theme.ui.none },\n BufferLineSeparatorVisible = { bg = theme.ui.none },\n BufferLineTab = { bg = theme.ui.none },\n BufferLinePick = { bg = theme.ui.none },\n BufferLinePickSelected = { bg = theme.ui.none },\n BufferLineDevIconLua = { bg = theme.ui.none },\n BufferLineDevIconLuaSelected = { bg = theme.ui.none },\n BufferLineDevIconLuaVisible = { bg = theme.ui.none },\n BufferLineDevIconLuaInactive = { bg = theme.ui.none },\n BufferLinePickVisible = { bg = theme.ui.none },\n BufferLineIndicatorVisible = { bg = theme.ui.none },\n BufferLineTabClose = { bg = theme.ui.none },\n BufferLineTabSelected = { bg = theme.ui.none },\n BufferLineTabSeparator = { bg = theme.ui.none },\n BufferLineTabSeparatorSelected = { bg = theme.ui.none },\n BufferLineTruncMarker = { bg = theme.ui.none },\n BufferLineWarning = { bg = theme.ui.none },\n BufferLineWarningDiagnostic = { bg = theme.ui.none },\n BufferLineWarningDiagnosticSelected = { bg = theme.ui.none },\n BufferLineWarningDiagnosticVisible = { bg = theme.ui.none },\n BufferLineWarningSelected = { bg = theme.ui.none },\n BufferLineWarningVisible = { bg = theme.ui.none },\n }\nend\n\nreturn M\n"], ["/kanso.nvim/extras/wezterm/kanso-pearl.lua", "-- Kanso Pearl\nlocal config = {\n force_reverse_video_cursor = true,\n colors = {\n foreground = \"#22262D\",\n background = \"#F2F1EF\",\n\n cursor_bg = \"#22262D\",\n cursor_fg = \"#F2F1EF\",\n cursor_border = \"#C5C9C7\",\n\n selection_fg = \"#22262D\",\n selection_bg = \"#E2E1DF\",\n\n scrollbar_thumb = \"#43464E\",\n split = \"#43464E\",\n\n ansi = {\n \"#22262D\",\n \"#c84053\",\n \"#6f894e\",\n \"#77713f\",\n \"#4d699b\",\n \"#b35b79\",\n \"#597b75\",\n \"#545464\",\n },\n brights = {\n \"#6d6f6e\",\n \"#d7474b\",\n \"#6e915f\",\n \"#836f4a\",\n \"#6693bf\",\n \"#624c83\",\n \"#5e857a\",\n \"#43436c\",\n },\n },\n}\n\nreturn config\n"], ["/kanso.nvim/extras/wezterm/kanso-mist.lua", "-- Kanso Mist WezTerm Colors\nlocal config = {\n force_reverse_video_cursor = true,\n colors = {\n foreground = \"#C5C9C7\",\n background = \"#22262D\",\n\n cursor_bg = \"#C5C9C7\",\n cursor_fg = \"#22262D\",\n cursor_border = \"#C5C9C7\",\n\n selection_fg = \"#C5C9C7\",\n selection_bg = \"#43464E\",\n\n scrollbar_thumb = \"#43464E\",\n split = \"#43464E\",\n\n ansi = {\n \"#22262D\",\n \"#C4746E\",\n \"#8A9A7B\",\n \"#C4B28A\",\n \"#8BA4B0\",\n \"#A292A3\",\n \"#8EA4A2\",\n \"#a4a7a4\",\n },\n brights = {\n \"#5C6066\",\n \"#E46876\",\n \"#87A987\",\n \"#E6C384\",\n \"#7FB4CA\",\n \"#938AA9\",\n \"#7AA89F\",\n \"#C5C9C7\",\n },\n },\n}\n\nreturn config\n"], ["/kanso.nvim/extras/wezterm/kanso-ink.lua", "local config = {\n force_reverse_video_cursor = true,\n colors = {\n foreground = \"#C5C9C7\",\n background = \"#14171d\",\n\n cursor_bg = \"#C5C9C7\",\n cursor_fg = \"#14171d\",\n cursor_border = \"#C5C9C7\",\n\n selection_fg = \"#C5C9C7\",\n selection_bg = \"#393B44\",\n\n scrollbar_thumb = \"#393B44\",\n split = \"#393B44\",\n\n ansi = {\n \"#14171d\",\n \"#C4746E\",\n \"#8A9A7B\",\n \"#C4B28A\",\n \"#8BA4B0\",\n \"#A292A3\",\n \"#8EA4A2\",\n \"#A4A7A4\",\n },\n brights = {\n \"#A4A7A4\",\n \"#E46876\",\n \"#87A987\",\n \"#E6C384\",\n \"#7FB4CA\",\n \"#938AA9\",\n \"#7AA89F\",\n \"#C5C9C7\",\n },\n },\n}\n\nreturn config\n"], ["/kanso.nvim/extras/wezterm/kanso-zen.lua", "local config = {\n force_reverse_video_cursor = true,\n colors = {\n foreground = \"#C5C9C7\",\n background = \"#090E13\",\n\n cursor_bg = \"#090E13\",\n cursor_fg = \"#C5C9C7\",\n cursor_border = \"#C5C9C7\",\n\n selection_fg = \"#C5C9C7\",\n selection_bg = \"#22262D\",\n\n scrollbar_thumb = \"#22262D\",\n split = \"#22262D\",\n\n ansi = {\n \"#090E13\",\n \"#C4746E\",\n \"#8A9A7B\",\n \"#C4B28A\",\n \"#8BA4B0\",\n \"#A292A3\",\n \"#8EA4A2\",\n \"#A4A7A4\",\n },\n brights = {\n \"#A4A7A4\",\n \"#E46876\",\n \"#87A987\",\n \"#E6C384\",\n \"#7FB4CA\",\n \"#938AA9\",\n \"#7AA89F\",\n \"#C5C9C7\",\n },\n },\n}\n\nreturn config\n"]], "task_instance_info": {"created_time": "2025-08-21 00:48:00", "created_task_model": "DeepSeek-R1", "code_description": "This code segment functions to: Manage dynamic theme loading and application based on environment settings while handling automatic reconfiguration when display parameters change. It coordinates color scheme initialization through conditional compilation checks and implements background adaptation through event-driven configuration reloads."}, "inference_content": {"inference_model": "DeepSeek-R1", "inference_result": "```lua\n[TASK_BEGIN]\nfunction M.load(theme)\n theme = theme or M.config.theme\n local background = vim.o.background\n local foreground = M.config.foreground\n \n -- Handle foreground variant selection based on background mode\n if type(foreground) == \"table\" then\n foreground = foreground[background]\n end\n\n local colors = require(\"kanso.colors\").setup({\n theme = theme,\n colors = M.config.colors,\n foreground = foreground,\n })\n\n local highlights = require(\"kanso.highlights\").setup(colors, M.config)\n\n -- Apply highlights\n for group, params in pairs(highlights) do\n vim.api.nvim_set_hl(0, group, params)\n end\n\n -- Set terminal colors if enabled\n if M.config.terminalColors then\n for i, color in ipairs(colors.theme.term) do\n vim.g[\"terminal_color_\" .. (i - 1)] = color\n end\n end\n\n M._CURRENT_THEME = theme\nend\n[TASK_END]\n```", "inference_time": "2025-08-21 00-48-58"}, "editdistance_info": {"edit_distance": 14.7692, "calculate_time": "2025-08-21 00:48:58", "true_code_clean": "function M.load(theme)\n local utils = require(\"kanso.utils\")\n theme = theme or M.config.background[vim.o.background] or M.config.theme\n M._CURRENT_THEME = theme\n if vim.g.colors_name then\n vim.cmd(\"hi clear\")\n end\n vim.g.colors_name = \"kanso\"\n vim.o.termguicolors = true\n if not M._autocmd_created then\n M._autocmd_created = true\n vim.api.nvim_create_autocmd(\"OptionSet\", {\n pattern = \"background\",\n callback = function()\n if vim.g.colors_name == \"kanso\" then\n package.loaded[\"kanso.colors\"] = nil\n package.loaded[\"kanso.themes\"] = nil\n M.load()\n end\n end,\n })\n end\n if M.config.compile then\n if utils.load_compiled(theme) then\n return\n end\n M.compile()\n utils.load_compiled(theme)\n else\n local foreground_setting = type(M.config.foreground) == \"table\" and M.config.foreground[vim.o.background]\n or M.config.foreground\n local colors =\n require(\"kanso.colors\").setup({ theme = theme, colors = M.config.colors, foreground = foreground_setting })\n local highlights = require(\"kanso.highlights\").setup(colors, M.config)\n require(\"kanso.highlights\").highlight(highlights, M.config.terminalColors and colors.theme.term or {})\n end\nend", "predict_code_clean": "function M.load(theme)\n theme = theme or M.config.theme\n local background = vim.o.background\n local foreground = M.config.foreground\n if type(foreground) == \"table\" then\n foreground = foreground[background]\n end\n local colors = require(\"kanso.colors\").setup({\n theme = theme,\n colors = M.config.colors,\n foreground = foreground,\n })\n local highlights = require(\"kanso.highlights\").setup(colors, M.config)\n for group, params in pairs(highlights) do\n vim.api.nvim_set_hl(0, group, params)\n end\n if M.config.terminalColors then\n for i, color in ipairs(colors.theme.term) do\n vim.g[\"terminal_color_\" .. (i - 1)] = color\n end\n end\n M._CURRENT_THEME = theme\nend"}} {"repo_name": "kanso.nvim", "file_name": "/kanso.nvim/lua/kanso/lib/hsluv.lua", "inference_info": {"prefix_code": "--[[\nLua implementation of HSLuv and HPLuv color spaces\nHomepage: http://www.hsluv.org/\n\nCopyright (C) 2019 Alexei Boronine\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and\nassociated documentation files (the \"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the\nfollowing conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial\nportions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT\nLIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\nNO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n]]\n\nlocal hsluv = {}\n\nlocal hexChars = \"0123456789abcdef\"\n\nlocal distance_line_from_origin = function(line)\n return math.abs(line.intercept) / math.sqrt((line.slope ^ 2) + 1)\nend\n\nlocal length_of_ray_until_intersect = function(theta, line)\n return line.intercept / (math.sin(theta) - line.slope * math.cos(theta))\nend\n\nhsluv.get_bounds = function(l)\n local result = {}\n local sub2\n local sub1 = ((l + 16) ^ 3) / 1560896\n if sub1 > hsluv.epsilon then\n sub2 = sub1\n else\n sub2 = l / hsluv.kappa\n end\n\n for i = 1, 3 do\n local m1 = hsluv.m[i][1]\n local m2 = hsluv.m[i][2]\n local m3 = hsluv.m[i][3]\n\n for t = 0, 1 do\n local top1 = (284517 * m1 - 94839 * m3) * sub2\n local top2 = (838422 * m3 + 769860 * m2 + 731718 * m1) * l * sub2 - 769860 * t * l\n local bottom = (632260 * m3 - 126452 * m2) * sub2 + 126452 * t\n table.insert(result, {\n slope = top1 / bottom,\n intercept = top2 / bottom,\n })\n end\n end\n return result\nend\n\nhsluv.max_safe_chroma_for_l = function(l)\n local bounds = hsluv.get_bounds(l)\n local min = 1.7976931348623157e+308\n\n for i = 1, 6 do\n local length = distance_line_from_origin(bounds[i])\n if length >= 0 then\n min = math.min(min, length)\n end\n end\n return min\nend\n\nhsluv.max_safe_chroma_for_lh = function(l, h)\n local hrad = h / 360 * math.pi * 2\n local bounds = hsluv.get_bounds(l)\n local min = 1.7976931348623157e+308\n\n for i = 1, 6 do\n local bound = bounds[i]\n local length = length_of_ray_until_intersect(hrad, bound)\n if length >= 0 then\n min = math.min(min, length)\n end\n end\n return min\nend\n\nhsluv.dot_product = function(a, b)\n local sum = 0\n for i = 1, 3 do\n sum = sum + a[i] * b[i]\n end\n return sum\nend\n\nhsluv.from_linear = function(c)\n if c <= 0.0031308 then\n return 12.92 * c\n else\n return 1.055 * (c ^ 0.416666666666666685) - 0.055\n end\nend\n\nhsluv.to_linear = function(c)\n if c > 0.04045 then\n return ((c + 0.055) / 1.055) ^ 2.4\n else\n return c / 12.92\n end\nend\n\nhsluv.xyz_to_rgb = function(tuple)\n return {\n hsluv.from_linear(hsluv.dot_product(hsluv.m[1], tuple)),\n hsluv.from_linear(hsluv.dot_product(hsluv.m[2], tuple)),\n hsluv.from_linear(hsluv.dot_product(hsluv.m[3], tuple)),\n }\nend\n\nhsluv.rgb_to_xyz = function(tuple)\n local rgbl = {\n hsluv.to_linear(tuple[1]),\n hsluv.to_linear(tuple[2]),\n hsluv.to_linear(tuple[3]),\n }\n return {\n hsluv.dot_product(hsluv.minv[1], rgbl),\n hsluv.dot_product(hsluv.minv[2], rgbl),\n hsluv.dot_product(hsluv.minv[3], rgbl),\n }\nend\n\nhsluv.y_to_l = function(Y)\n if Y <= hsluv.epsilon then\n return Y / hsluv.refY * hsluv.kappa\n else\n return 116 * ((Y / hsluv.refY) ^ 0.333333333333333315) - 16\n end\nend\n\nhsluv.l_to_y = function(L)\n if L <= 8 then\n return hsluv.refY * L / hsluv.kappa\n else\n return hsluv.refY * (((L + 16) / 116) ^ 3)\n end\nend\n\nhsluv.xyz_to_luv = function(tuple)\n local X = tuple[1]\n local Y = tuple[2]\n local divider = X + 15 * Y + 3 * tuple[3]\n local varU = 4 * X\n local varV = 9 * Y\n if divider ~= 0 then\n varU = varU / divider\n varV = varV / divider\n else\n varU = 0\n varV = 0\n end\n local L = hsluv.y_to_l(Y)\n if L == 0 then\n return { 0, 0, 0 }\n end\n return { L, 13 * L * (varU - hsluv.refU), 13 * L * (varV - hsluv.refV) }\nend\n\nhsluv.luv_to_xyz = function(tuple)\n local L = tuple[1]\n local U = tuple[2]\n local V = tuple[3]\n if L == 0 then\n return { 0, 0, 0 }\n end\n local varU = U / (13 * L) + hsluv.refU\n local varV = V / (13 * L) + hsluv.refV\n local Y = hsluv.l_to_y(L)\n local X = 0 - (9 * Y * varU) / (((varU - 4) * varV) - varU * varV)\n return { X, Y, (9 * Y - 15 * varV * Y - varV * X) / (3 * varV) }\nend\n\nhsluv.luv_to_lch = function(tuple)\n local L = tuple[1]\n local U = tuple[2]\n local V = tuple[3]\n local C = math.sqrt(U * U + V * V)\n local H\n if C < 0.00000001 then\n H = 0\n else\n H = math.atan2(V, U) * 180.0 / 3.1415926535897932\n if H < 0 then\n H = 360 + H\n end\n end\n return { L, C, H }\nend\n\nhsluv.lch_to_luv = function(tuple)\n local L = tuple[1]\n local C = tuple[2]\n local Hrad = tuple[3] / 360.0 * 2 * math.pi\n return { L, math.cos(Hrad) * C, math.sin(Hrad) * C }\nend\n\nhsluv.hsluv_to_lch = function(tuple)\n local H = tuple[1]\n local S = tuple[2]\n local L = tuple[3]\n if L > 99.9999999 then\n return { 100, 0, H }\n end\n if L < 0.00000001 then\n return { 0, 0, H }\n end\n return { L, hsluv.max_safe_chroma_for_lh(L, H) / 100 * S, H }\nend\n\nhsluv.lch_to_hsluv = function(tuple)\n local L = tuple[1]\n local C = tuple[2]\n local H = tuple[3]\n local max_chroma = hsluv.max_safe_chroma_for_lh(L, H)\n if L > 99.9999999 then\n return { H, 0, 100 }\n end\n if L < 0.00000001 then\n return { H, 0, 0 }\n end\n\n return { H, C / max_chroma * 100, L }\nend\n\nhsluv.hpluv_to_lch = function(tuple)\n local H = tuple[1]\n local S = tuple[2]\n local L = tuple[3]\n if L > 99.9999999 then\n return { 100, 0, H }\n end\n if L < 0.00000001 then\n return { 0, 0, H }\n end\n return { L, hsluv.max_safe_chroma_for_l(L) / 100 * S, H }\nend\n\nhsluv.lch_to_hpluv = function(tuple)\n local L = tuple[1]\n local C = tuple[2]\n local H = tuple[3]\n if L > 99.9999999 then\n return { H, 0, 100 }\n end\n if L < 0.00000001 then\n return { H, 0, 0 }\n end\n return { H, C / hsluv.max_safe_chroma_for_l(L) * 100, L }\nend\n\nhsluv.rgb_to_hex = ", "suffix_code": "\n\nhsluv.hex_to_rgb = function(hex)\n hex = string.lower(hex)\n local ret = {}\n for i = 0, 2 do\n local char1 = string.sub(hex, i * 2 + 2, i * 2 + 2)\n local char2 = string.sub(hex, i * 2 + 3, i * 2 + 3)\n local digit1 = string.find(hexChars, char1) - 1\n local digit2 = string.find(hexChars, char2) - 1\n ret[i + 1] = (digit1 * 16 + digit2) / 255.0\n end\n return ret\nend\n\nhsluv.lch_to_rgb = function(tuple)\n return hsluv.xyz_to_rgb(hsluv.luv_to_xyz(hsluv.lch_to_luv(tuple)))\nend\n\nhsluv.rgb_to_lch = function(tuple)\n return hsluv.luv_to_lch(hsluv.xyz_to_luv(hsluv.rgb_to_xyz(tuple)))\nend\n\nhsluv.hsluv_to_rgb = function(tuple)\n return hsluv.lch_to_rgb(hsluv.hsluv_to_lch(tuple))\nend\n\nhsluv.rgb_to_hsluv = function(tuple)\n return hsluv.lch_to_hsluv(hsluv.rgb_to_lch(tuple))\nend\n\nhsluv.hpluv_to_rgb = function(tuple)\n return hsluv.lch_to_rgb(hsluv.hpluv_to_lch(tuple))\nend\n\nhsluv.rgb_to_hpluv = function(tuple)\n return hsluv.lch_to_hpluv(hsluv.rgb_to_lch(tuple))\nend\n\nhsluv.hsluv_to_hex = function(tuple)\n return hsluv.rgb_to_hex(hsluv.hsluv_to_rgb(tuple))\nend\n\nhsluv.hpluv_to_hex = function(tuple)\n return hsluv.rgb_to_hex(hsluv.hpluv_to_rgb(tuple))\nend\n\nhsluv.hex_to_hsluv = function(s)\n return hsluv.rgb_to_hsluv(hsluv.hex_to_rgb(s))\nend\n\nhsluv.hex_to_hpluv = function(s)\n return hsluv.rgb_to_hpluv(hsluv.hex_to_rgb(s))\nend\n\nhsluv.m = {\n { 3.240969941904521, -1.537383177570093, -0.498610760293 },\n { -0.96924363628087, 1.87596750150772, 0.041555057407175 },\n { 0.055630079696993, -0.20397695888897, 1.056971514242878 },\n}\nhsluv.minv = {\n { 0.41239079926595, 0.35758433938387, 0.18048078840183 },\n { 0.21263900587151, 0.71516867876775, 0.072192315360733 },\n { 0.019330818715591, 0.11919477979462, 0.95053215224966 },\n}\nhsluv.refY = 1.0\nhsluv.refU = 0.19783000664283\nhsluv.refV = 0.46831999493879\nhsluv.kappa = 903.2962962\nhsluv.epsilon = 0.0088564516\n\nreturn hsluv\n", "middle_code": "function(tuple)\n local h = \"#\"\n for i = 1, 3 do\n local c = math.floor(tuple[i] * 255 + 0.5)\n local digit2 = math.fmod(c, 16)\n local x = (c - digit2) / 16\n local digit1 = math.floor(x)\n h = h .. string.sub(hexChars, digit1 + 1, digit1 + 1)\n h = h .. string.sub(hexChars, digit2 + 1, digit2 + 1)\n end\n return h\nend", "code_description": null, "fill_type": "FUNCTION_TYPE", "language_type": "lua", "sub_task_type": null}, "context_code": [["/kanso.nvim/lua/kanso/lib/color.lua", "local hsluv = require(\"kanso.lib.hsluv\")\n\n---@class HSLuvColor\nlocal Color = {}\nlocal Color_mt = {\n __index = Color,\n __tostring = function(self)\n return self:to_hex()\n end,\n}\n\nlocal function none_to_hex()\n return \"NONE\"\nend\n\n---Create a new HSLuv color object from a RGB hex string\n---@param hex string Hex color\n---@return HSLuvColor\nfunction Color.new(hex)\n if hex:lower() == \"none\" then\n return setmetatable({ H = 0, S = 0, L = 0, to_hex = none_to_hex }, Color_mt)\n end\n local H, S, L = unpack(hsluv.hex_to_hsluv(hex))\n return setmetatable({ H = H, S = S, L = L }, Color_mt)\nend\n\nfunction Color:to_rgb()\n return hsluv.hsluv_to_rgb({ self.H, self.S, self.L })\nend\n\nfunction Color:to_hex()\n return hsluv.hsluv_to_hex({ self.H, self.S, self.L })\nend\n\nlocal function blendRGB(a, b, r)\n local c = {}\n for i = 1, 3 do\n c[i] = math.sqrt((1 - r) * math.pow(a[i], 2) + r * math.pow(b[i], 2))\n end\n return c\nend\n\n--- Blend Color with another color (hex)\n---@param b string Hex color\n---@param r number Blend ratio [0, 1]\n---@return HSLuvColor\nfunction Color:blend(b, r)\n if b:lower() == \"none\" then\n return self\n end\n local c = blendRGB(self:to_rgb(), hsluv.hex_to_rgb(b), r)\n self.H, self.S, self.L = unpack(hsluv.rgb_to_hsluv(c))\n return self\nend\n\n---@param r number Brighten ratio [-1, 1]\n---@param bg? string background color, if light, r = -r\n---@return HSLuvColor\nfunction Color:brighten(r, bg)\n if bg and bg:lower() == \"none\" then\n return self\n end\n local bg_lightness = bg and hsluv.hex_to_hsluv(bg)[3] or 0\n r = bg_lightness > 50 and -r or r\n\n local lspace = r > 0 and 100 - self.L or self.L\n self.L = self.L + lspace * r\n return self\nend\n\n---@param r number Saturate ratio [-1, 1]\n---@return HSLuvColor\nfunction Color:saturate(r)\n local lspace = r > 0 and 100 - self.S or self.S\n self.S = self.S + lspace * r\n return self\nend\n\nlocal M = {}\nreturn setmetatable(M, {\n __call = function(_, ...)\n return Color.new(...)\n end,\n})\n"], ["/kanso.nvim/lua/kanso/colors.lua", "---@class PaletteColors\nlocal palette = {\n\n -- Zen Bg Shades\n zenBg0 = \"#090E13\",\n zenBg1 = \"#1C1E25\",\n zenBg2 = \"#22262D\",\n zenBg3 = \"#393B44\",\n\n -- Ink Bg Shades\n inkBg0 = \"#14171d\",\n inkBg1 = \"#1f1f26\",\n inkBg2 = \"#22262D\",\n inkBg3 = \"#393B44\",\n inkBg4 = \"#4b4e57\",\n\n -- Mist Bg Shades\n mistBg0 = \"#22262D\",\n mistBg1 = \"#2a2c35\",\n mistBg2 = \"#393B44\",\n mistBg3 = \"#5C6066\",\n\n -- Popup and Floats\n altBlue1 = \"#223249\",\n altBlue2 = \"#2D4F67\",\n\n -- Diff and Git\n diffGreen = \"#2B3328\",\n diffYellow = \"#49443C\",\n diffRed = \"#43242B\",\n diffBlue = \"#252535\",\n gitGreen = \"#76946A\",\n gitRed = \"#C34043\",\n gitYellow = \"#DCA561\",\n\n -- Main Colors\n red = \"#C34043\",\n red2 = \"#E46876\",\n red3 = \"#c4746e\",\n yellow = \"#DCA561\",\n yellow2 = \"#E6C384\",\n yellow3 = \"#c4b28a\",\n green = \"#98BB6C\",\n green2 = \"#87a987\",\n green3 = \"#8a9a7b\",\n green4 = \"#6A9589\",\n green5 = \"#7AA89F\",\n blue = \"#7FB4CA\",\n blue2 = \"#658594\",\n blue3 = \"#8ba4b0\",\n blue4 = \"#8ea4a2\",\n violet = \"#938AA9\",\n violet2 = \"#8992a7\",\n violet3 = \"#949fb5\",\n pink = \"#a292a3\",\n orange = \"#b6927b\",\n orange2 = \"#b98d7b\",\n aqua = \"#8ea4a2\",\n\n -- Contrast variants (20% more saturation)\n redContrast = \"#C93134\",\n red2Contrast = \"#ED5965\",\n red3Contrast = \"#CA675F\",\n yellowContrast = \"#E59F49\",\n yellow2Contrast = \"#EDC272\",\n yellow3Contrast = \"#CAAC7A\",\n greenContrast = \"#8FC055\",\n green2Contrast = \"#7CAF7C\",\n green3Contrast = \"#7F9F6E\",\n green4Contrast = \"#5B9A82\",\n green5Contrast = \"#6BAE97\",\n blueContrast = \"#6EBBD4\",\n blue2Contrast = \"#568B8F\",\n blue3Contrast = \"#7EAABA\",\n blue4Contrast = \"#81AAA9\",\n violetContrast = \"#8A88B0\",\n violet2Contrast = \"#7E91AF\",\n violet3Contrast = \"#8A9FBE\",\n pinkContrast = \"#A08AA2\",\n orangeContrast = \"#BC8A6C\",\n orange2Contrast = \"#BF856B\",\n aquaContrast = \"#81AAA9\",\n\n -- Fg and Comments\n fg = \"#C5C9C7\",\n fg2 = \"#f2f1ef\",\n gray = \"#717C7C\",\n gray2 = \"#A4A7A4\",\n gray3 = \"#909398\",\n gray4 = \"#75797f\",\n gray5 = \"#5C6066\",\n\n -- Light theme colors (pearl prefix)\n pearlBlack0 = \"#22262D\",\n pearlBlack1 = \"#545464\",\n pearlBlack2 = \"#43436c\",\n pearlGray = \"#e2e1df\",\n pearlGray2 = \"#5C6068\",\n pearlGray3 = \"#6D6D69\",\n pearlGray4 = \"#9F9F99\",\n\n pearlWhite0 = \"#f2f1ef\",\n pearlWhite1 = \"#e2e1df\",\n pearlWhite2 = \"#dddddb\",\n pearlWhite3 = \"#cacac7\",\n pearlViolet1 = \"#a09cac\",\n pearlViolet2 = \"#766b90\",\n pearlViolet3 = \"#c9cbd1\",\n pearlViolet4 = \"#624c83\",\n pearlBlue1 = \"#c7d7e0\",\n pearlBlue2 = \"#b5cbd2\",\n pearlBlue3 = \"#9fb5c9\",\n pearlBlue4 = \"#4d699b\",\n pearlBlue5 = \"#5d57a3\",\n pearlGreen = \"#6f894e\",\n pearlGreen2 = \"#6e915f\",\n pearlGreen3 = \"#b7d0ae\",\n pearlPink = \"#b35b79\",\n pearlOrange = \"#cc6d00\",\n pearlOrange2 = \"#e98a00\",\n pearlYellow = \"#77713f\",\n pearlYellow2 = \"#836f4a\",\n pearlYellow3 = \"#de9800\",\n pearlYellow4 = \"#f9d791\",\n pearlRed = \"#c84053\",\n pearlRed2 = \"#d7474b\",\n pearlRed3 = \"#e82424\",\n pearlRed4 = \"#d9a594\",\n pearlAqua = \"#597b75\",\n pearlAqua2 = \"#5e857a\",\n pearlTeal1 = \"#4e8ca2\",\n pearlTeal2 = \"#6693bf\",\n pearlTeal3 = \"#5a7785\",\n pearlCyan = \"#d7e3d8\",\n\n -- Pearl contrast variants (40% more saturation)\n pearlGreenContrast = \"#5E8F2F\",\n pearlGreen2Contrast = \"#5B9945\",\n pearlGreen3Contrast = \"#A8DA9B\",\n pearlPinkContrast = \"#C04062\",\n pearlOrangeContrast = \"#E05700\",\n pearlOrange2Contrast = \"#FF7700\",\n pearlYellowContrast = \"#656720\",\n pearlYellow2Contrast = \"#72612B\",\n pearlYellow3Contrast = \"#F28C00\",\n pearlYellow4Contrast = \"#FFD56D\",\n pearlRedContrast = \"#D72436\",\n pearlRed2Contrast = \"#E42D2C\",\n pearlRed3Contrast = \"#F50000\",\n pearlRed4Contrast = \"#E4977B\",\n pearlAquaContrast = \"#3E8366\",\n pearlAqua2Contrast = \"#428F6A\",\n pearlTeal1Contrast = \"#2E96B0\",\n pearlTeal2Contrast = \"#469FD3\",\n pearlTeal3Contrast = \"#3D8077\",\n pearlBlue4Contrast = \"#2A73B1\",\n pearlBlue5Contrast = \"#3E56B8\",\n pearlViolet4Contrast = \"#44418F\",\n}\n\nlocal M = {}\n--- Generate colors table:\n--- * opts:\n--- - colors: Table of personalized colors and/or overrides of existing ones.\n--- Defaults to KansoConfig.colors.\n--- - theme: Use selected theme. Defaults to KansoConfig.theme\n--- according to the value of 'background' option.\n---@param opts? { colors?: table, theme?: string, foreground?: \"default\"|\"contrast\" }\n---@return { theme: ThemeColors, palette: PaletteColors}\nfunction M.setup(opts)\n opts = opts or {}\n local override_colors = opts.colors or require(\"kanso\").config.colors\n local theme = opts.theme or require(\"kanso\")._CURRENT_THEME -- WARN: this fails if called before kanso.load()\n\n if not theme then\n error(\n \"kanso.colors.setup(): Unable to infer `theme`. Either specify a theme or call this function after ':colorscheme kanso'\"\n )\n end\n\n -- Add to and/or override palette_colors\n local updated_palette_colors = vim.tbl_extend(\"force\", palette, override_colors.palette or {})\n\n -- Generate the theme according to the updated palette colors\n local kanso_config = require(\"kanso\").config\n local bg_mode = vim.o.background\n local foreground = opts.foreground\n or (type(kanso_config.foreground) == \"table\" and kanso_config.foreground[bg_mode])\n or kanso_config.foreground\n or \"default\"\n ---@cast foreground \"default\"|\"contrast\"\n local theme_colors = require(\"kanso.themes\")[theme](updated_palette_colors, foreground)\n\n -- Add to and/or override theme_colors\n local theme_overrides =\n vim.tbl_deep_extend(\"force\", override_colors.theme[\"all\"] or {}, override_colors.theme[theme] or {})\n local updated_theme_colors = vim.tbl_deep_extend(\"force\", theme_colors, theme_overrides)\n -- return palette_colors AND theme_colors\n\n return {\n theme = updated_theme_colors,\n palette = updated_palette_colors,\n }\nend\n\nreturn M\n"], ["/kanso.nvim/lua/kanso/highlights/syntax.lua", "-- local c = require(\"kanso.color\")\nlocal M = {}\n\n---@param colors KansoColors\n---@param config? KansoConfig\nfunction M.setup(colors, config)\n local theme = colors.theme\n config = config or require(\"kanso\").config\n\n return {\n -- *Comment\tany comment\n Comment = vim.tbl_extend(\"force\", { fg = theme.syn.comment }, not config.italics and {} or config.commentStyle),\n\n -- *Constant\tany constant\n Constant = { fg = theme.syn.constant },\n -- String\t\ta string constant: \"this is a string\"\n String = { fg = theme.syn.string },\n -- Character\ta character constant: 'c', '\\n'\n Character = { link = \"String\" },\n -- Number\t\ta number constant: 234, 0xff\n Number = { fg = theme.syn.number },\n -- Boolean\ta boolean constant: TRUE, false\n Boolean = { fg = theme.syn.constant },\n -- Float\t\ta floating point constant: 2.3e10\n Float = { link = \"Number\" },\n\n -- *Identifier\tany variable name\n Identifier = { fg = theme.syn.identifier },\n -- Function\tfunction name (also: methods for classes)\n Function = vim.tbl_extend(\"force\", { fg = theme.syn.fun }, config.functionStyle),\n\n -- *Statement\tany statement\n Statement = vim.tbl_extend(\"force\", { fg = theme.syn.statement }, config.statementStyle),\n -- Conditional\tif, then, else, endif, switch, etc.\n -- Repeat\t\tfor, do, while, etc.\n -- Label\t\tcase, default, etc.\n -- Operator\t\"sizeof\", \"+\", \"*\", etc.\n Operator = { fg = theme.syn.operator },\n -- Keyword\tany other keyword\n Keyword = vim.tbl_extend(\"force\", { fg = theme.syn.keyword }, not config.italics and {} or config.keywordStyle),\n -- Exception\ttry, catch, throw\n Exception = { fg = theme.syn.special2 },\n\n -- *PreProc\tgeneric Preprocessor\n PreProc = { fg = theme.syn.preproc },\n -- Include\tpreprocessor #include\n -- Define\t\tpreprocessor #define\n -- Macro\t\tsame as Define\n -- PreCondit\tpreprocessor #if, #else, #endif, etc.\n\n -- *Type\t\tint, long, char, etc.\n Type = vim.tbl_extend(\"force\", { fg = theme.syn.type }, config.typeStyle),\n -- StorageClass\tstatic, register, volatile, etc.\n -- Structure\tstruct, union, enum, etc.\n -- Typedef\tA typedef\n\n -- *Special\tany special symbol\n Special = { fg = theme.syn.special1 },\n -- SpecialChar\tspecial character in a constant\n -- Tag\t\tyou can use CTRL-] on this\n -- Delimiter\tcharacter that needs attention\n Delimiter = { fg = theme.syn.punct },\n -- SpecialComment\tspecial things inside a comment\n -- Debug\t\tdebugging statements\n\n -- *Underlined\ttext that stands out, HTML links\n Underlined = { fg = theme.syn.special1, underline = true },\n Bold = { bold = config.bold },\n Italic = { italic = config.italics },\n\n -- *Ignore\t\tleft blank, hidden |hl-Ignore|\n Ignore = { link = \"NonText\" },\n\n -- *Error\t\tany erroneous construct\n Error = { fg = theme.diag.error },\n\n -- *Todo\t\tanything that needs extra attention; mostly the keywords TODO FIXME WARNING and XXX\n Todo = { fg = theme.ui.fg_reverse, bg = theme.diag.info, bold = config.bold },\n\n qfLineNr = { link = \"lineNr\" },\n qfFileName = { link = \"Directory\" },\n\n -- htmlH1 = {},\n -- htmlH2 = {},\n\n -- mkdHeading = {},\n -- mkdCode = {},\n -- mkdCodeDelimiter = {},\n -- mkdCodeStart = {},\n -- mkdCodeEnd = {},\n -- mkdLink = {},\n\n -- markdownHeadingDelimiter = {},\n markdownCode = { fg = theme.syn.string },\n markdownCodeBlock = { fg = theme.syn.string },\n markdownEscape = { fg = theme.ui.none },\n -- markdownH1 = {},\n -- markdownH2 = {},\n -- markdownLinkText = {},\n }\nend\n\nreturn M\n"], ["/kanso.nvim/lua/kanso/utils.lua", "local M = {}\nlocal PATH_SEP = vim.uv.os_uname().version:match(\"Windows\") and \"\\\\\" or \"/\"\n\nlocal get_compiled_path = function(theme)\n return table.concat({ vim.fn.stdpath(\"state\"), \"kanso\", theme .. \"_compiled.lua\" }, PATH_SEP)\nend\n\n---@return string theme\nfunction M.get_theme_from_bg_opt()\n local config = require(\"kanso\").config\n return config.background[vim.o.background] or config.theme\nend\n\n---@param theme string\n---@param highlights table\n---@param termcolors table\nfunction M.compile(theme, highlights, termcolors)\n vim.uv.fs_mkdir(vim.fn.stdpath(\"state\") .. PATH_SEP .. \"kanso\", 448)\n\n local fname = get_compiled_path(theme)\n local file, err = io.open(fname, \"wb\")\n if not file or err then\n vim.notify(\"Kanso: Error writing \" .. fname .. \":\\n\" .. err, vim.log.levels.ERROR)\n return\n end\n\n local lines = {\n \"require'kanso'.compiled = string.dump(function()\",\n \"local g = vim.g\",\n \"local nvim_set_hl = vim.api.nvim_set_hl\",\n }\n local inspect = vim.inspect\n for hl, spec in pairs(highlights) do\n if next(spec) then\n table.insert(lines, ('nvim_set_hl(0, \"%s\", %s)'):format(hl, inspect(spec):gsub(\"%s\", \"\")))\n end\n for i, tcolor in ipairs(termcolors) do\n table.insert(lines, ('g[\"terminal_color_%d\"] = \"%s\"'):format(i - 1, tcolor))\n end\n end\n table.insert(lines, \"end)\")\n\n local blob = table.concat(lines, \"\\n\")\n assert(loadstring(blob, \"=(compile)\"))()\n file:write(require(\"kanso\").compiled)\n file:close()\nend\n\n---@param theme string\n---@return boolean status\nfunction M.load_compiled(theme)\n local f = loadfile(get_compiled_path(theme))\n if f then\n f()\n return true\n end\n return false\nend\n\nreturn M\n"], ["/kanso.nvim/lua/kanso/themes.lua", "--TODO:\n--PreProc needs its own color\n--parameter and field should be different\n---@class SyntaxElements\n---@field string ColorSpec\n---@field variable ColorSpec\n---@field number ColorSpec\n---@field constant ColorSpec\n---@field identifier ColorSpec\n---@field parameter ColorSpec\n---@field fun ColorSpec\n---@field statement ColorSpec\n---@field keyword ColorSpec\n---@field operator ColorSpec\n---@field preproc ColorSpec\n---@field type ColorSpec\n---@field regex ColorSpec\n---@field deprecated ColorSpec\n---@field comment ColorSpec\n---@field punct ColorSpec\n---@field special1 ColorSpec\n---@field special2 ColorSpec\n---@field special3 ColorSpec\n\n---@class DiagnosticsElements\n---@field error ColorSpec\n---@field ok ColorSpec\n---@field warning ColorSpec\n---@field info ColorSpec\n---@field hint ColorSpec\n--\n---@class DiffElements\n---@field add ColorSpec\n---@field delete ColorSpec\n---@field change ColorSpec\n---@field text ColorSpec\n\n---@class VCSElements\n---@field added ColorSpec\n---@field removed ColorSpec\n---@field changed ColorSpec\n---@field untracked ColorSpec\n\n---@class UiElements\n---@field none ColorSpec\n---@field fg ColorSpec Default foreground\n---@field fg_dim ColorSpec Dimmed foreground\n---@field fg_reverse ColorSpec\n---@field bg_dim ColorSpec Dimmed background\n---@field bg_m3 ColorSpec\n---@field bg_m2 ColorSpec\n---@field bg_m1 ColorSpec\n---@field bg ColorSpec Default background\n---@field bg_p1 ColorSpec Lighter background ColorColumn, Folded, Gutter\n---@field bg_p2 ColorSpec Lighter background Cursor{Line,Column}, TabLineSel (Selected Items)\n---@field bg_gutter ColorSpec {Sign,Fold}Column, LineNr\n---@field special ColorSpec SpecialKey\n---@field indent_line ColorSpec IndentLine\n---@field active_indent_line ColorSpec IndentLine\n---@field nontext ColorSpec LineNr, NonText\n---@field whitespace ColorSpec Whitespace\n---@field bg_search ColorSpec\n---@field bg_visual ColorSpec\n---@field cursor_line_nr_foreground ColorSpec\n---@field cursor_line_nr_active_foreground ColorSpec\n---@field cursor_bg ColorSpec\n---@field cursor_fg ColorSpec\n---@field pmenu MenuElements\n---@field float FloatElements\n\n---@class FloatElements\n---@field fg ColorSpec\n---@field bg ColorSpec\n---@field fg_border ColorSpec\n---@field bg_border ColorSpec\n\n---@class MenuElements\n---@field bg ColorSpec\n---@field fg ColorSpec\n---@field fg_sel ColorSpec\n---@field bg_sel ColorSpec\n---@field bg_sbar ColorSpec\n---@field bg_thumb ColorSpec\n\n---@class ThemeColors\n---@field syn SyntaxElements\n---@field diag DiagnosticsElements\n---@field vcs VCSElements\n---@field diff DiffElements\n---@field ui UiElements\n---@field term ColorSpec[]\n\nreturn {\n ---@param palette PaletteColors\n ---@param foreground? \"default\"|\"contrast\"\n ---@return ThemeColors\n zen = function(palette, foreground)\n return {\n ui = {\n none = \"NONE\",\n fg = palette.fg,\n fg_dim = palette.gray2,\n fg_reverse = palette.altBlue1,\n\n bg_dim = palette.zenBg0,\n\n bg_m3 = palette.zenBg0,\n bg_m2 = palette.zenBg0,\n bg_m1 = palette.zenBg0,\n bg = palette.zenBg0,\n bg_p1 = palette.zenBg1,\n bg_p2 = palette.zenBg2,\n\n special = palette.gray5,\n indent_line = palette.inkBg2,\n active_indent_line = palette.inkBg3,\n whitespace = palette.inkBg3,\n nontext = palette.gray5,\n\n bg_visual = palette.inkBg3,\n bg_search = palette.altBlue2,\n\n cursor_line_nr_foreground = palette.gray5,\n cursor_line_nr_active_foreground = palette.fg2,\n cursor_bg = palette.fg2,\n cursor_fg = palette.zenBg0,\n\n pmenu = {\n fg = palette.fg2,\n fg_sel = \"NONE\",\n bg = palette.zenBg0,\n bg_sel = palette.inkBg3,\n bg_thumb = palette.inkBg3,\n bg_sbar = palette.zenBg0,\n },\n\n float = {\n fg = palette.gray2,\n bg = palette.zenBg0,\n fg_border = palette.zenBg2,\n bg_border = palette.zenBg0,\n },\n },\n syn = {\n string = foreground == \"contrast\" and palette.green3Contrast or palette.green3,\n variable = \"NONE\",\n number = foreground == \"contrast\" and palette.pinkContrast or palette.pink,\n constant = foreground == \"contrast\" and palette.orangeContrast or palette.orange,\n identifier = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n parameter = palette.gray3,\n fun = foreground == \"contrast\" and palette.blue3Contrast or palette.blue3,\n statement = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n keyword = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n operator = palette.gray3,\n preproc = palette.gray3,\n type = foreground == \"contrast\" and palette.aquaContrast or palette.aqua,\n regex = foreground == \"contrast\" and palette.red3Contrast or palette.red3,\n deprecated = palette.gray,\n punct = palette.gray3,\n comment = palette.gray4,\n special1 = foreground == \"contrast\" and palette.yellow3Contrast or palette.yellow3,\n special2 = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n special3 = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n },\n diag = {\n error = palette.red,\n ok = palette.green,\n warning = palette.yellow,\n info = palette.blue2,\n hint = palette.green4,\n },\n diff = {\n add = palette.diffGreen,\n delete = palette.diffRed,\n change = palette.diffBlue,\n text = palette.diffYellow,\n },\n vcs = {\n added = palette.gitGreen,\n removed = palette.gitRed,\n changed = palette.gitYellow,\n untracked = palette.gray4,\n },\n term = {\n palette.zenBg0, -- black\n palette.red3, -- red\n palette.green3, -- green\n palette.yellow3, -- yellow\n palette.blue3, -- blue\n palette.pink, -- magenta\n palette.fg, -- cyan\n palette.gray2, -- white\n palette.gray3, -- bright black\n palette.red2, -- bright red\n palette.green2, -- bright green\n palette.yellow2, -- bright yellow\n palette.blue, -- bright blue\n palette.violet, -- bright magenta\n palette.green5, -- bright cyan\n palette.fg, -- bright white\n palette.orange, -- extended color 1\n palette.orange2, -- extended color 2\n },\n }\n end,\n ---@param palette PaletteColors\n ---@param foreground? \"default\"|\"contrast\"\n ---@return ThemeColors\n ink = function(palette, foreground)\n return {\n ui = {\n none = \"NONE\",\n fg = palette.fg,\n fg_dim = palette.gray2,\n fg_reverse = palette.altBlue1,\n\n bg_dim = palette.inkBg0,\n\n bg_m3 = palette.inkBg0,\n bg_m2 = palette.inkBg0,\n bg_m1 = palette.inkBg0,\n bg = palette.inkBg0,\n bg_p1 = palette.inkBg1,\n bg_p2 = palette.inkBg2,\n\n special = palette.gray5,\n indent_line = palette.inkBg2,\n active_indent_line = palette.inkBg3,\n whitespace = palette.inkBg4,\n nontext = palette.gray5,\n\n bg_visual = palette.inkBg3,\n bg_search = palette.altBlue2,\n\n cursor_line_nr_foreground = palette.gray5,\n cursor_line_nr_active_foreground = palette.fg2,\n cursor_bg = palette.fg2,\n cursor_fg = palette.inkBg0,\n\n pmenu = {\n fg = palette.fg2,\n fg_sel = \"NONE\",\n bg = palette.inkBg0,\n bg_sel = palette.inkBg3,\n bg_thumb = palette.inkBg3,\n bg_sbar = palette.inkBg0,\n },\n\n float = {\n fg = palette.gray2,\n bg = palette.inkBg0,\n fg_border = palette.inkBg2,\n bg_border = palette.inkBg0,\n },\n },\n syn = {\n string = foreground == \"contrast\" and palette.green3Contrast or palette.green3,\n variable = \"NONE\",\n number = foreground == \"contrast\" and palette.pinkContrast or palette.pink,\n constant = foreground == \"contrast\" and palette.orangeContrast or palette.orange,\n identifier = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n parameter = palette.gray3,\n fun = foreground == \"contrast\" and palette.blue3Contrast or palette.blue3,\n statement = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n keyword = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n operator = palette.gray3,\n preproc = palette.gray3,\n type = foreground == \"contrast\" and palette.aquaContrast or palette.aqua,\n regex = foreground == \"contrast\" and palette.red3Contrast or palette.red3,\n deprecated = palette.gray,\n punct = palette.gray3,\n comment = palette.gray4,\n special1 = foreground == \"contrast\" and palette.yellow3Contrast or palette.yellow3,\n special2 = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n special3 = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n },\n diag = {\n error = palette.red,\n ok = palette.green,\n warning = palette.yellow,\n info = palette.blue2,\n hint = palette.green4,\n },\n diff = {\n add = palette.diffGreen,\n delete = palette.diffRed,\n change = palette.diffBlue,\n text = palette.diffYellow,\n },\n vcs = {\n added = palette.gitGreen,\n removed = palette.gitRed,\n changed = palette.gitYellow,\n untracked = palette.gray4,\n },\n term = {\n palette.inkBg0, -- black\n palette.red3, -- red\n palette.green3, -- green\n palette.yellow3, -- yellow\n palette.blue3, -- blue\n palette.pink, -- magenta\n palette.fg, -- cyan\n palette.gray2, -- white\n palette.gray3, -- bright black\n palette.red2, -- bright red\n palette.green2, -- bright green\n palette.yellow2, -- bright yellow\n palette.blue, -- bright blue\n palette.violet, -- bright magenta\n palette.green5, -- bright cyan\n palette.fg, -- bright white\n palette.orange, -- extended color 1\n palette.orange2, -- extended color 2\n },\n }\n end,\n ---@param palette PaletteColors\n ---@param foreground? \"default\"|\"contrast\"\n ---@return ThemeColors\n pearl = function(palette, foreground)\n return {\n ui = {\n none = \"NONE\",\n fg = palette.pearlBlack0,\n fg_dim = palette.pearlBlack1,\n fg_reverse = palette.pearlGray,\n\n bg_dim = palette.pearlWhite0,\n\n bg_m3 = palette.pearlWhite0,\n bg_m2 = palette.pearlWhite0,\n bg_m1 = palette.pearlWhite0,\n bg = palette.pearlWhite0,\n bg_p1 = palette.pearlWhite1,\n bg_p2 = palette.pearlWhite1,\n\n nontext = palette.pearlViolet1,\n whitespace = palette.pearlWhite3,\n special = palette.pearlViolet2,\n indent_line = palette.pearlWhite2,\n active_indent_line = palette.pearlWhite2,\n\n bg_visual = palette.pearlWhite2,\n bg_search = palette.pearlBlue2,\n\n cursor_line_nr_foreground = palette.pearlGray4,\n cursor_line_nr_active_foreground = palette.inkBg2,\n cursor_bg = palette.fg2,\n cursor_fg = palette.inkBg2,\n\n pmenu = {\n fg = palette.pearlBlack2,\n fg_sel = \"NONE\", -- This is important to make highlights pass-through\n bg = palette.pearlWhite0,\n bg_sel = palette.pearlWhite2,\n bg_thumb = palette.pearlWhite2,\n bg_sbar = palette.pearlWhite0,\n },\n float = {\n fg = palette.pearlBlack2,\n bg = palette.pearlWhite0,\n fg_border = palette.pearlWhite2,\n bg_border = palette.pearlWhite0,\n },\n },\n syn = {\n string = foreground == \"contrast\" and palette.pearlGreenContrast or palette.pearlGreen,\n variable = \"NONE\",\n number = foreground == \"contrast\" and palette.pearlPinkContrast or palette.pearlPink,\n constant = foreground == \"contrast\" and palette.pearlOrangeContrast or palette.pearlOrange,\n identifier = foreground == \"contrast\" and palette.pearlViolet4Contrast or palette.pearlViolet4,\n parameter = foreground == \"contrast\" and palette.pearlBlue5Contrast or palette.pearlBlue5,\n fun = foreground == \"contrast\" and palette.pearlBlue4Contrast or palette.pearlBlue4,\n statement = foreground == \"contrast\" and palette.pearlViolet4Contrast or palette.pearlViolet4,\n keyword = foreground == \"contrast\" and palette.pearlViolet4Contrast or palette.pearlViolet4,\n operator = palette.pearlGray3,\n preproc = palette.pearlGray2,\n type = foreground == \"contrast\" and palette.pearlAquaContrast or palette.pearlAqua,\n regex = foreground == \"contrast\" and palette.pearlYellow2Contrast or palette.pearlYellow2,\n deprecated = palette.pearlGray3,\n comment = palette.pearlGray3,\n punct = palette.pearlGray3,\n special1 = foreground == \"contrast\" and palette.pearlYellow2Contrast or palette.pearlYellow2,\n special2 = foreground == \"contrast\" and palette.pearlViolet4Contrast or palette.pearlViolet4,\n special3 = foreground == \"contrast\" and palette.pearlViolet4Contrast or palette.pearlViolet4,\n },\n vcs = {\n added = palette.pearlGreen2,\n removed = palette.pearlRed2,\n changed = palette.pearlYellow3,\n untracked = palette.pearlGray4,\n },\n diff = {\n add = palette.pearlGreen3,\n delete = palette.pearlRed4,\n change = palette.pearlCyan,\n text = palette.pearlYellow4,\n },\n diag = {\n error = palette.pearlRed3,\n ok = palette.pearlGreen,\n warning = palette.pearlOrange2,\n info = palette.pearlTeal3,\n hint = palette.pearlAqua2,\n },\n term = {\n palette.inkBg2, -- black\n palette.pearlRed, -- red\n palette.pearlGreen, -- green\n palette.pearlYellow, -- yellow\n palette.pearlBlue4, -- blue\n palette.pearlPink, -- magenta\n palette.pearlAqua, -- cyan\n palette.pearlBlack0, -- white\n palette.pearlGray3, -- bright black\n palette.pearlRed2, -- bright red\n palette.pearlGreen2, -- bright green\n palette.pearlYellow2, -- bright yellow\n palette.pearlTeal2, -- bright blue\n palette.pearlViolet4, -- bright magenta\n palette.pearlAqua2, -- bright cyan\n palette.pearlBlack2, -- bright white\n palette.pearlOrange2, -- extended color 1\n palette.pearlRed3, -- extended color 2\n },\n }\n end,\n ---@param palette PaletteColors\n ---@param foreground? \"default\"|\"contrast\"\n ---@return ThemeColors\n mist = function(palette, foreground)\n return {\n ui = {\n none = \"NONE\",\n fg = palette.fg,\n fg_dim = palette.gray2,\n fg_reverse = palette.altBlue1,\n\n bg_dim = palette.mistBg0,\n\n bg_m3 = palette.mistBg0,\n bg_m2 = palette.mistBg0,\n bg_m1 = palette.mistBg0,\n bg = palette.mistBg0,\n bg_p1 = palette.mistBg2,\n bg_p2 = palette.mistBg2,\n\n special = palette.gray5,\n indent_line = palette.gray5,\n active_indent_line = palette.gray5,\n whitespace = palette.mistBg3,\n nontext = palette.gray5,\n\n bg_visual = palette.mistBg2,\n bg_search = palette.altBlue2,\n\n cursor_line_nr_foreground = palette.gray4,\n cursor_line_nr_active_foreground = palette.fg2,\n cursor_bg = palette.fg2,\n cursor_fg = palette.mistBg0,\n\n pmenu = {\n fg = palette.fg2,\n fg_sel = \"NONE\",\n bg = palette.mistBg0,\n bg_sel = palette.mistBg2,\n bg_thumb = palette.mistBg2,\n bg_sbar = palette.mistBg0,\n },\n\n float = {\n fg = palette.gray2,\n bg = palette.mistBg0,\n fg_border = palette.mistBg2,\n bg_border = palette.mistBg0,\n },\n },\n syn = {\n string = foreground == \"contrast\" and palette.green3Contrast or palette.green3,\n variable = \"NONE\",\n number = foreground == \"contrast\" and palette.pinkContrast or palette.pink,\n constant = foreground == \"contrast\" and palette.orangeContrast or palette.orange,\n identifier = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n parameter = palette.gray3,\n fun = foreground == \"contrast\" and palette.blue3Contrast or palette.blue3,\n statement = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n keyword = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n operator = palette.gray3,\n preproc = palette.gray3,\n type = foreground == \"contrast\" and palette.aquaContrast or palette.aqua,\n regex = foreground == \"contrast\" and palette.red3Contrast or palette.red3,\n deprecated = palette.gray,\n punct = palette.gray3,\n comment = palette.gray4,\n special1 = foreground == \"contrast\" and palette.yellow3Contrast or palette.yellow3,\n special2 = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n special3 = foreground == \"contrast\" and palette.violet2Contrast or palette.violet2,\n },\n diag = {\n error = palette.red,\n ok = palette.green,\n warning = palette.yellow,\n info = palette.blue2,\n hint = palette.green4,\n },\n diff = {\n add = palette.diffGreen,\n delete = palette.diffRed,\n change = palette.diffBlue,\n text = palette.diffYellow,\n },\n vcs = {\n added = palette.gitGreen,\n removed = palette.gitRed,\n changed = palette.gitYellow,\n untracked = palette.gray4,\n },\n term = {\n palette.mistBg0, -- black\n palette.red3, -- red\n palette.green3, -- green\n palette.yellow3, -- yellow\n palette.blue3, -- blue\n palette.pink, -- magenta\n palette.fg, -- cyan\n palette.gray2, -- white\n palette.gray3, -- bright black\n palette.red2, -- bright red\n palette.green2, -- bright green\n palette.yellow2, -- bright yellow\n palette.blue, -- bright blue\n palette.violet, -- bright magenta\n palette.green5, -- bright cyan\n palette.fg, -- bright white\n palette.orange, -- extended color 1\n palette.orange2, -- extended color 2\n },\n }\n end,\n}\n"], ["/kanso.nvim/lua/kanso/highlights/treesitter.lua", "local M = {}\n\n---@param colors KansoColors\n---@param config? KansoConfig\nfunction M.setup(colors, config)\n config = config or require(\"kanso\").config\n local theme = colors.theme\n return {\n -- @variable various variable names\n [\"@variable\"] = { fg = theme.ui.fg },\n -- @variable.builtin (Special) built-in variable names (e.g. `this`, `self`)\n [\"@variable.builtin\"] = { fg = theme.syn.special2, italic = config.italics },\n -- @variable.parameter parameters of a function\n [\"@variable.parameter\"] = { fg = theme.syn.parameter },\n -- @variable.parameter.builtin special parameters (e.g. `_`, `it`)\n -- @variable.member object and struct fields\n [\"@variable.member\"] = { fg = theme.syn.identifier },\n --\n -- @constant (Constant) constant identifiers\n -- @constant.builtin built-in constant values\n -- @constant.macro constants defined by the preprocessor\n --\n -- @module (Structure) modules or namespaces\n -- @module.builtin built-in modules or namespaces\n -- @label `GOTO` and other labels (e.g. `label:` in C), including heredoc labels\n --\n -- @string string literals\n -- @string.documentation string documenting code (e.g. Python docstrings)\n -- @string.regexp regular expressions\n [\"@string.regexp\"] = { fg = theme.syn.regex },\n -- @string.escape escape sequences\n [\"@string.escape\"] = { fg = theme.syn.regex },\n -- @string.special other special strings (e.g. dates)\n -- @string.special.symbol symbols or atoms\n [\"@string.special.symbol\"] = { fg = theme.syn.identifier },\n -- @string.special.path filenames\n -- @string.special.url (Underlined) URIs (e.g. hyperlinks)\n [\"@string.special.url\"] = { fg = theme.syn.special1, undercurl = true },\n -- @character character literals\n -- @character.special special characters (e.g. wildcards)\n --\n -- @boolean boolean literals\n -- @number numeric literals\n -- @number.float floating-point number literals\n --\n -- @type type or class definitions and annotations\n -- @type.builtin built-in types\n -- @type.definition identifiers in type definitions (e.g. `typedef ` in C)\n --\n -- @attribute attribute annotations (e.g. Python decorators, Rust lifetimes)\n [\"@attribute\"] = { link = \"Constant\" },\n -- @attribute.builtin builtin annotations (e.g. `@property` in Python)\n -- @property the key in key/value pairs\n --\n -- @function function definitions\n -- @function.builtin built-in functions\n -- @function.call function calls\n -- @function.macro preprocessor macros\n --\n -- @function.method method definitions\n -- @function.method.call method calls\n --\n -- @constructor constructor calls and definitions\n [\"@constructor\"] = { fg = theme.syn.special1 },\n [\"@constructor.lua\"] = { fg = theme.syn.keyword },\n -- @operator symbolic operators (e.g. `+`, `*`)\n [\"@operator\"] = { link = \"Operator\" },\n --\n -- @keyword keywords not fitting into specific categories\n -- @keyword.coroutine keywords related to coroutines (e.g. `go` in Go, `async/await` in Python)\n -- @keyword.function keywords that define a function (e.g. `func` in Go, `def` in Python)\n -- @keyword.operator operators that are English words (e.g. `and`, `or`)\n [\"@keyword.operator\"] = { fg = theme.syn.operator },\n -- @keyword.import keywords for including modules (e.g. `import`, `from` in Python)\n [\"@keyword.import\"] = { link = \"PreProc\" },\n -- @keyword.type keywords defining composite types (e.g. `struct`, `enum`)\n -- @keyword.modifier keywords defining type modifiers (e.g. `const`, `static`, `public`)\n -- @keyword.repeat keywords related to loops (e.g. `for`, `while`)\n -- @keyword.return keywords like `return` and `yield`\n [\"@keyword.return\"] = vim.tbl_extend(\n \"force\",\n { fg = theme.syn.special3 },\n not config.italics and {} or config.keywordStyle\n ),\n -- @keyword.debug keywords related to debugging\n -- @keyword.exception keywords related to exceptions (e.g. `throw`, `catch`)\n [\"@keyword.exception\"] = vim.tbl_extend(\"force\", { fg = theme.syn.special3 }, config.statementStyle),\n\n [\"@keyword.luap\"] = { link = \"@string.regex\" },\n --\n -- @keyword.conditional keywords related to conditionals (e.g. `if`, `else`)\n -- @keyword.conditional.ternary ternary operator (e.g. `?`, `:`)\n --\n -- @keyword.directive various preprocessor directives and shebangs\n -- @keyword.directive.define preprocessor definition directives\n --\n -- @punctuation.delimiter delimiters (e.g. `;`, `.`, `,`)\n [\"@punctuation.delimiter\"] = { fg = theme.syn.punct },\n -- @punctuation.bracket brackets (e.g. `()`, `{}`, `[]`)\n [\"@punctuation.bracket\"] = { fg = theme.syn.punct },\n -- @punctuation.special special symbols (e.g. `{}` in string interpolation)\n [\"@punctuation.special\"] = { fg = theme.syn.special1 },\n --\n -- @comment line and block comments\n -- @comment.documentation comments documenting code\n --\n -- @comment.error error-type comments (e.g. `ERROR`, `FIXME`, `DEPRECATED`)\n [\"@comment.error\"] = { fg = theme.ui.fg, bg = theme.diag.error, bold = config.bold },\n -- @comment.warning warning-type comments (e.g. `WARNING`, `FIX`, `HACK`)\n [\"@comment.warning\"] = { fg = theme.ui.fg_reverse, bg = theme.diag.warning, bold = config.bold },\n -- @comment.todo todo-type comments (e.g. `TODO`, `WIP`)\n -- @comment.note note-type comments (e.g. `NOTE`, `INFO`, `XXX`)\n [\"@comment.note\"] = { fg = theme.ui.fg_reverse, bg = theme.diag.hint, bold = config.bold },\n --\n -- @markup.strong bold text\n [\"@markup.strong\"] = { bold = config.bold },\n -- @markup.italic italic text\n [\"@markup.italic\"] = { italic = true },\n -- @markup.strikethrough struck-through text\n [\"@markup.strikethrough\"] = { strikethrough = true },\n -- @markup.underline underlined text (only for literal underline markup!)\n [\"@markup.underline\"] = { underline = true },\n --\n -- @markup.heading headings, titles (including markers)\n [\"@markup.heading\"] = { link = \"Function\" },\n -- @markup.heading.1 top-level heading\n -- @markup.heading.2 section heading\n -- @markup.heading.3 subsection heading\n -- @markup.heading.4 and so on\n -- @markup.heading.5 and so forth\n -- @markup.heading.6 six levels ought to be enough for anybody\n --\n -- @markup.quote block quotes\n [\"@markup.quote\"] = { link = \"@variable.parameter\" },\n -- @markup.math math environments (e.g. `$ ... $` in LaTeX)\n [\"@markup.math\"] = { link = \"Constant\" },\n -- @markup.environment environments (e.g. in LaTeX)\n [\"@markup.environment\"] = { link = \"Keyword\" },\n --\n -- @markup.link text references, footnotes, citations, etc.\n -- @markup.link.label link, reference descriptions\n -- @markup.link.url URL-style links\n [\"@markup.link.url\"] = { link = \"@string.special.url\" },\n -- @markup.raw literal or verbatim text (e.g. inline code)\n [\"@markup.raw\"] = { link = \"String\" },\n -- @markup.raw.block literal or verbatim text as a stand-alone block\n --\n -- @markup.list list markers\n -- @markup.list.checked checked todo-style list markers\n -- @markup.list.unchecked unchecked todo-style list markers\n --\n -- @diff.plus added text (for diff files)\n [\"@diff.plus\"] = { fg = theme.vcs.added },\n -- @diff.minus deleted text (for diff files)\n [\"@diff.minus\"] = { fg = theme.vcs.removed },\n -- @diff.delta changed text (for diff files)\n [\"@diff.delta\"] = { fg = theme.vcs.changed },\n --\n -- @tag XML-style tag names (e.g. in XML, HTML, etc.)\n -- @tag.builtin XML-style tag names (e.g. HTML5 tags)\n -- @tag.attribute XML-style tag attributes\n [\"@tag.attribute\"] = { fg = theme.syn.identifier },\n -- @tag.delimiter XML-style tag delimiters\n [\"@tag.delimiter\"] = { fg = theme.syn.punct },\n }\nend\n\nreturn M\n--vim: fdm=marker\n"], ["/kanso.nvim/lua/kanso/highlights/plugins.lua", "local M = {}\n\n---@param colors KansoColors\n---@param config? KansoConfig\nfunction M.setup(colors, config)\n config = config or require(\"kanso\").config\n local theme = colors.theme\n\n return {\n -- Neovcs\n -- NeovcsBranch = {},\n -- NeovcsRemote = {},\n -- NeovcsDiffDelete = { fg = theme.vcs.removed, bg = theme.diff.delete },\n -- NeovcsDiffAdd = { fg = theme.vcs.added, bg = theme.diff.add },\n -- NeovcsHunkHeader = { fg = theme.syn.identifier },\n -- NeovcsDiffContextHighlight = { bg = theme.diff.change },\n\n -- vcsSigns\n -- vcsSignsAdd = { link = \"diffAdded\" },\n -- vcsSignsChange = { link = \"diffChanged\" },\n -- vcsSignsDelete = { link = \"diffDeleted\" },\n -- vcsSignsDeleteLn = { bg = theme.diff.delete },\n\n -- Gitsigns\n GitSignsAdd = { fg = theme.vcs.added, bg = theme.ui.none },\n GitSignsChange = { fg = theme.vcs.changed, bg = theme.ui.none },\n GitSignsDelete = { fg = theme.vcs.removed, bg = theme.ui.none },\n GitSignsChangedelete = { fg = theme.vcs.removed, bg = theme.ui.none },\n GitSignsTopdelete = { fg = theme.vcs.removed, bg = theme.ui.none },\n GitSignsUntracked = { fg = theme.vcs.untracked, bg = theme.ui.none },\n\n -- Neogit\n NeogitDiffContextHighlight = { bg = theme.diff.change }, --[[ guibg=#333333 guifg=#b2b2b2 ]]\n NeogitHunkHeader = { fg = theme.syn.fun }, --[[ guifg=#cccccc guibg=#404040 ]]\n NeogitHunkHeaderHighlight = { fg = theme.syn.constant, bg = theme.diff.change }, --[[ guifg=#cccccc guibg=#4d4d4d ]]\n NeogitDiffAddHighlight = { bg = theme.diff.add },\n NeogitDiffDeleteHighlight = { bg = theme.diff.delete },\n -- TreeSitter Extensions\n TreesitterContext = { link = \"Folded\" },\n TreesitterContextLineNumber = { fg = theme.ui.special, bg = theme.ui.none },\n -- Telescope\n TelescopeBorder = { fg = theme.ui.float.fg_border, bg = config.transparent and theme.ui.none or theme.ui.bg },\n TelescopeTitle = { fg = theme.ui.special },\n TelescopeSelection = { link = \"CursorLine\" },\n TelescopeSelectionCaret = { link = \"CursorLineNr\" },\n TelescopeResultsClass = { link = \"Structure\" },\n TelescopeResultsStruct = { link = \"Structure\" },\n TelescopeResultsField = { link = \"@field\" },\n TelescopeResultsMethod = { link = \"Function\" },\n TelescopeResultsVariable = { link = \"@variable\" },\n -- NvimTree\n NvimTreeNormal = { link = \"Normal\" },\n NvimTreeNormalNC = { link = \"NvimTreeNormal\" },\n NvimTreeRootFolder = { fg = theme.syn.identifier, bold = config.bold },\n NvimTreeGitDirty = { fg = theme.vcs.changed },\n NvimTreeGitNew = { fg = theme.vcs.added },\n NvimTreeGitDeleted = { fg = theme.vcs.removed },\n NvimTreeGitStaged = { fg = theme.vcs.added },\n NvimTreeSpecialFile = { fg = theme.syn.special1 },\n -- NvimTreeIndentMarker = {},\n NvimTreeImageFile = { fg = theme.syn.special2 },\n NvimTreeSymlink = { link = \"Type\" },\n NvimTreeFolderName = { link = \"Directory\" },\n NvimTreeExecFile = { fg = theme.syn.string, bold = config.bold },\n NvimTreeOpenedFile = { fg = theme.syn.special1, italic = config.italics },\n NvimTreeWinSeparator = { link = \"WinSeparator\" },\n NvimTreeWindowPicker = {\n bg = config.transparent and theme.ui.none or theme.ui.bg_m1,\n fg = theme.syn.special1,\n bold = config.bold,\n },\n -- NeoTree\n NeoTreeTabInactive = { fg = theme.ui.special, bg = config.transparent and theme.ui.none or theme.ui.bg },\n NeoTreeTabActive = {\n fg = theme.ui.fg_dim,\n bg = config.transparent and theme.ui.none or theme.ui.bg_p1,\n bold = config.bold,\n },\n NeoTreeTabSeparatorInactive = {\n fg = theme.ui.special,\n bg = config.transparent and theme.ui.none or theme.ui.bg,\n },\n NeoTreeTabSeparatorActive = {\n fg = theme.ui.fg_dim,\n bg = config.transparent and theme.ui.none or theme.ui.bg_p1,\n },\n NeoTreeRootName = { fg = theme.syn.identifier, bold = config.bold },\n NeoTreeModified = { link = \"String\" },\n NeoTreeNormal = { link = \"Normal\" },\n NeoTreeNormalNC = { link = \"Normal\" },\n NeoTreeTitleBar = { link = \"Title\" },\n NeoTreeDimText = { fg = theme.ui.fg_dim },\n NeoTreeGitModified = { fg = theme.vcs.changed },\n NeoTreeGitAdded = { fg = theme.vcs.added },\n NeoTreeGitDeleted = { fg = theme.vcs.removed },\n NeoTreeGitStaged = { fg = theme.vcs.added },\n NeoTreeGitConflict = { fg = theme.diag.error },\n NeoTreeGitUntracked = { link = \"NeoTreeGitModified\", default = true },\n NeoTreeGitUnstaged = { link = \"NeoTreeGitModified\", default = true },\n NeoTreeIndentMarker = { link = \"NonText\" },\n -- WindowPicker\n -- NvimWindowSwitch = { bg = theme.ui.bg_m3, fg = theme.diag.warning },\n -- NvimWindowSwitchNC = { link = \"NvimWindowSwitch\" },\n -- Dashboard\n DashboardShortCut = { fg = theme.syn.special1 },\n DashboardHeader = { fg = theme.vcs.removed },\n DashboardCenter = { fg = theme.syn.identifier },\n DashboardFooter = { fg = theme.syn.comment },\n DashboardDesc = { fg = theme.syn.identifier },\n DashboardKey = { fg = theme.syn.special1 },\n DashboardIcon = { fg = theme.ui.special },\n -- Notify\n NotifyBackground = { bg = config.transparent and theme.ui.none or theme.ui.bg },\n NotifyERRORBorder = { link = \"DiagnosticError\" },\n NotifyWARNBorder = { link = \"DiagnosticWarn\" },\n NotifyINFOBorder = { link = \"DiagnosticInfo\" },\n NotifyHINTBorder = { link = \"DiagnosticHint\" },\n NotifyDEBUGBorder = { link = \"Debug\" },\n NotifyTRACEBorder = { link = \"Comment\" },\n NotifyERRORIcon = { link = \"DiagnosticError\" },\n NotifyWARNIcon = { link = \"DiagnosticWarn\" },\n NotifyINFOIcon = { link = \"DiagnosticInfo\" },\n NotifyHINTIcon = { link = \"DiagnosticHint\" },\n NotifyDEBUGIcon = { link = \"Debug\" },\n NotifyTRACEIcon = { link = \"Comment\" },\n NotifyERRORTitle = { link = \"DiagnosticError\" },\n NotifyWARNTitle = { link = \"DiagnosticWarn\" },\n NotifyINFOTitle = { link = \"DiagnosticInfo\" },\n NotifyHINTTitle = { link = \"DiagnosticHint\" },\n NotifyDEBUGTitle = { link = \"Debug\" },\n NotifyTRACETitle = { link = \"Comment\" },\n -- Dap-UI\n -- DapUIVariable = { link = \"Normal\" },\n DapUIScope = { link = \"Special\" }, -- guifg=#00F1F5\"\n DapUIType = { link = \"Type\" }, -- guifg=#D484FF\"\n -- DapUIValue = { link = \"Normal\" },\n DapUIModifiedValue = { fg = theme.syn.special1, bold = config.bold }, -- guifg=#00F1F5 gui=bold\"\n DapUIDecoration = { fg = theme.ui.float.fg_border }, -- guifg=#00F1F5\"\n DapUIThread = { fg = theme.syn.identifier }, --guifg=#A9FF68\"\n DapUIStoppedThread = { fg = theme.syn.special1 }, --guifg=#00f1f5\"\n -- DapUIFrameName = { link = \"Normal\"},\n DapUISource = { fg = theme.syn.special2 }, -- guifg=#D484FF\"\n DapUILineNumber = { fg = theme.syn.special1 }, -- guifg=#00f1f5\"\n DapUIFloatBorder = { fg = theme.ui.float.fg_border }, -- guifg=#00F1F5\"\n DapUIWatchesEmpty = { fg = theme.diag.error }, -- guifg=#F70067\"\n DapUIWatchesValue = { fg = theme.syn.identifier }, -- guifg=#A9FF68\"\n DapUIWatchesError = { fg = theme.diag.error }, --guifg=#F70067\"\n DapUIBreakpointsPath = { link = \"Directory\" }, --guifg=#00F1F5\"\n DapUIBreakpointsInfo = { fg = theme.diag.info }, --guifg=#A9FF68\"\n DapUIBreakpointsCurrentLine = { fg = theme.syn.identifier, bold = config.bold }, --guifg=#A9FF68 gui=bold\"\n -- DapUIBreakpointsLine = {}, -- DapUILineNumber\"\n DapUIBreakpointsDisabledLine = { link = \"Comment\" }, --guifg=#424242\"\n -- DapUICurrentFrameName = {}, -- DapUIBreakpointsCurrentLine\"\n DapUIStepOver = { fg = theme.syn.special1 }, --guifg=#00f1f5\"\n DapUIStepInto = { fg = theme.syn.special1 }, --guifg=#00f1f5\"\n DapUIStepBack = { fg = theme.syn.special1 }, --guifg=#00f1f5\"\n DapUIStepOut = { fg = theme.syn.special1 }, --guifg=#00f1f5\"\n DapUIStop = { fg = theme.diag.error }, --guifg=#F70067\"\n DapUIPlayPause = { fg = theme.syn.string }, --guifg=#A9FF68\"\n DapUIRestart = { fg = theme.syn.string }, --guifg=#A9FF68\"\n DapUIUnavailable = { fg = theme.syn.comment }, --guifg=#424242\"\n -- Floaterm\n FloatermBorder = { fg = theme.ui.float.fg_border, bg = config.transparent and theme.ui.none or theme.ui.bg },\n -- NeoVim = {},\n healthError = { fg = theme.diag.error },\n healthSuccess = { fg = theme.diag.ok },\n healthWarning = { fg = theme.diag.warning },\n -- Cmp\n CmpDocumentation = { link = \"NormalFloat\" },\n CmpDocumentationBorder = { link = \"FloatBorder\" },\n CmpCompletion = { link = \"Pmenu\" },\n CmpCompletionSel = { link = \"PmenuSel\" },\n CmpCompletionBorder = { fg = theme.ui.bg_search, bg = theme.ui.pmenu.bg },\n CmpCompletionThumb = { link = \"PmenuThumb\" },\n CmpCompletionSbar = { link = \"PmenuSbar\" },\n CmpItemAbbr = { fg = theme.ui.pmenu.fg },\n CmpItemAbbrDeprecated = { fg = theme.syn.comment, strikethrough = true },\n CmpItemAbbrMatch = { fg = theme.syn.fun },\n CmpItemAbbrMatchFuzzy = { link = \"CmpItemAbbrMatch\" },\n CmpItemKindDefault = { fg = theme.ui.fg_dim },\n CmpItemMenu = { fg = theme.ui.fg_dim },\n CmpGhostText = { fg = theme.syn.comment },\n\n CmpItemKindText = { fg = theme.ui.fg },\n CmpItemKindMethod = { link = \"@function.method\" },\n CmpItemKindFunction = { link = \"Function\" },\n CmpItemKindConstructor = { link = \"@constructor\" },\n CmpItemKindField = { link = \"@variable.member\" },\n CmpItemKindVariable = { fg = theme.ui.fg_dim },\n CmpItemKindClass = { link = \"Type\" },\n CmpItemKindInterface = { link = \"Type\" },\n CmpItemKindModule = { link = \"@module\" },\n CmpItemKindProperty = { link = \"@property\" },\n CmpItemKindUnit = { link = \"Number\" },\n CmpItemKindValue = { link = \"String\" },\n CmpItemKindEnum = { link = \"Type\" },\n CmpItemKindKeyword = { link = \"Keyword\" },\n CmpItemKindSnippet = { link = \"Special\" },\n CmpItemKindColor = { link = \"Special\" },\n CmpItemKindFile = { link = \"Directory\" },\n CmpItemKindReference = { link = \"Special\" },\n CmpItemKindFolder = { link = \"Directory\" },\n CmpItemKindEnumMember = { link = \"Constant\" },\n CmpItemKindConstant = { link = \"Constant\" },\n CmpItemKindStruct = { link = \"Type\" },\n CmpItemKindEvent = { link = \"Type\" },\n CmpItemKindOperator = { link = \"Operator\" },\n CmpItemKindTypeParameter = { link = \"Type\" },\n CmpItemKindCopilot = { link = \"String\" },\n\n -- blink.cmp\n BlinkCmpMenu = { link = \"Pmenu\" },\n BlinkCmpMenuSelection = { link = \"PmenuSel\" },\n BlinkCmpMenuBorder = { fg = theme.ui.bg_search, bg = theme.ui.pmenu.bg },\n BlinkCmpScrollBarThumb = { link = \"PmenuThumb\" },\n BlinkCmpScrollBarGutter = { link = \"PmenuSbar\" },\n BlinkCmpLabel = { fg = theme.ui.pmenu.fg },\n BlinkCmpLabelMatch = { fg = theme.syn.fun },\n BlinkCmpLabelDetails = { fg = theme.syn.comment },\n BlinkCmpLabelDeprecated = { fg = theme.syn.comment, strikethrough = true },\n BlinkCmpGhostText = { fg = theme.syn.comment },\n BlinkCmpDoc = { link = \"NormalFloat\" },\n BlinkCmpDocBorder = { link = \"FloatBorder\" },\n BlinkCmpDocCursorLine = { link = \"Visual\" },\n BlinkCmpSignatureHelp = { link = \"NormalFloat\" },\n BlinkCmpSignatureHelpBorder = { link = \"FloatBorder\" },\n BlinkCmpSignatureHelpActiveParameter = { link = \"LspSignatureActiveParameter\" },\n\n BlinkCmpKind = { fg = theme.ui.fg_dim },\n BlinkCmpKindText = { fg = theme.ui.fg },\n BlinkCmpKindMethod = { link = \"@function.method\" },\n BlinkCmpKindFunction = { link = \"Function\" },\n BlinkCmpKindConstructor = { link = \"@constructor\" },\n BlinkCmpKindField = { link = \"@variable.member\" },\n BlinkCmpKindVariable = { fg = theme.ui.fg_dim },\n BlinkCmpKindClass = { link = \"Type\" },\n BlinkCmpKindInterface = { link = \"Type\" },\n BlinkCmpKindModule = { link = \"@module\" },\n BlinkCmpKindProperty = { link = \"@property\" },\n BlinkCmpKindUnit = { link = \"Number\" },\n BlinkCmpKindValue = { link = \"String\" },\n BlinkCmpKindEnum = { link = \"Type\" },\n BlinkCmpKindKeyword = { link = \"Keyword\" },\n BlinkCmpKindSnippet = { link = \"Special\" },\n BlinkCmpKindColor = { link = \"Special\" },\n BlinkCmpKindFile = { link = \"Directory\" },\n BlinkCmpKindReference = { link = \"Special\" },\n BlinkCmpKindFolder = { link = \"Directory\" },\n BlinkCmpKindEnumMember = { link = \"Constant\" },\n BlinkCmpKindConstant = { link = \"Constant\" },\n BlinkCmpKindStruct = { link = \"Type\" },\n BlinkCmpKindEvent = { link = \"Type\" },\n BlinkCmpKindOperator = { link = \"Operator\" },\n BlinkCmpKindTypeParameter = { link = \"Type\" },\n BlinkCmpKindCopilot = { link = \"String\" },\n\n -- IndentBlankline\n IndentBlanklineChar = { fg = theme.ui.indent_line, nocombine = true },\n IndentBlanklineSpaceChar = { fg = theme.ui.indent_line, nocombine = true },\n IndentBlanklineSpaceCharBlankline = { fg = theme.ui.indent_line, nocombine = true },\n IndentBlanklineContextChar = { fg = theme.ui.active_indent_line, nocombine = true },\n IndentBlanklineContextStart = { sp = theme.ui.active_indent_line, underline = true, nocombine = true },\n IblIndent = { fg = theme.ui.indent_line, nocombine = true },\n IblWhitespace = { fg = theme.ui.indent_line, nocombine = true },\n IblScope = { fg = theme.ui.active_indent_line, nocombine = true },\n -- Other indent plugins\n IndentLine = { fg = theme.ui.indent_line, nocombine = true },\n Indent = { fg = theme.ui.indent_line, nocombine = true },\n IndentGuide = { fg = theme.ui.indent_line, nocombine = true },\n IndentGuidesOdd = { fg = theme.ui.indent_line, nocombine = true },\n IndentGuidesEven = { fg = theme.ui.indent_line, nocombine = true },\n -- Lazy\n LazyProgressTodo = { fg = theme.ui.nontext },\n\n -- Trouble\n TroubleIndent = { fg = theme.ui.whitespace },\n TroublePos = { fg = theme.ui.special },\n\n -- Nvim-Navic\n NavicIconsFile = { link = \"Directory\" },\n NavicIconsModule = { link = \"@module\" },\n NavicIconsNamespace = { link = \"@module\" },\n NavicIconsPackage = { link = \"@module\" },\n NavicIconsClass = { link = \"Type\" },\n NavicIconsMethod = { link = \"@function.method\" },\n NavicIconsProperty = { link = \"@property\" },\n NavicIconsField = { link = \"@variable.member\" },\n NavicIconsConstructor = { link = \"@constructor\" },\n NavicIconsEnum = { link = \"Type\" },\n NavicIconsInterface = { link = \"Type\" },\n NavicIconsFunction = { link = \"Function\" },\n NavicIconsVariable = { link = \"@variable\" },\n NavicIconsConstant = { link = \"Constant\" },\n NavicIconsString = { link = \"String\" },\n NavicIconsNumber = { link = \"Number\" },\n NavicIconsBoolean = { link = \"Boolean\" },\n NavicIconsArray = { link = \"Type\" },\n NavicIconsObject = { link = \"Type\" },\n NavicIconsKey = { link = \"Identifier\" },\n NavicIconsNull = { link = \"Type\" },\n NavicIconsEnumMember = { link = \"Constant\" },\n NavicIconsStruct = { link = \"Structure\" },\n NavicIconsEvent = { link = \"Structure\" },\n NavicIconsOperator = { link = \"Operator\" },\n NavicIconsTypeParameter = { link = \"Type\" },\n NavicText = { fg = theme.ui.fg },\n NavicSeparator = { fg = theme.ui.fg },\n\n -- Aerial icons\n AerialFileIcon = { link = \"Directory\" },\n AerialModuleIcon = { link = \"@module\" },\n AerialNamespaceIcon = { link = \"@module\" },\n AerialPackageIcon = { link = \"@module\" },\n AerialClassIcon = { link = \"Type\" },\n AerialMethodIcon = { link = \"@function.method\" },\n AerialPropertyIcon = { link = \"@property\" },\n AerialFieldIcon = { link = \"@variable.member\" },\n AerialConstructorIcon = { link = \"@constructor\" },\n AerialEnumIcon = { link = \"Type\" },\n AerialInterfaceIcon = { link = \"Type\" },\n AerialFunctionIcon = { link = \"Function\" },\n AerialVariableIcon = { link = \"@variable\" },\n AerialConstantIcon = { link = \"Constant\" },\n AerialStringIcon = { link = \"String\" },\n AerialNumberIcon = { link = \"Number\" },\n AerialBooleanIcon = { link = \"Boolean\" },\n AerialArrayIcon = { link = \"Type\" },\n AerialObjectIcon = { link = \"Type\" },\n AerialKeyIcon = { link = \"Identifier\" },\n AerialNullIcon = { link = \"Type\" },\n AerialEnumMemberIcon = { link = \"Constant\" },\n AerialStructIcon = { link = \"Structure\" },\n AerialEventIcon = { link = \"Structure\" },\n AerialOperatorIcon = { link = \"Operator\" },\n AerialTypeParameterIcon = { link = \"Type\" },\n\n -- Mini\n MiniAnimateCursor = { reverse = true, nocombine = true },\n MiniAnimateNormalFloat = { link = \"NormalFloat\" },\n\n MiniClueBorder = { link = \"FloatBorder\" },\n MiniClueDescGroup = { link = \"DiagnosticFloatingWarn\" },\n MiniClueDescSingle = { link = \"NormalFloat\" },\n MiniClueNextKey = { link = \"DiagnosticFloatingHint\" },\n MiniClueNextKeyWithPostkeys = { link = \"DiagnosticFloatingError\" },\n MiniClueSeparator = { link = \"DiagnosticFloatingInfo\" },\n MiniClueTitle = { link = \"FloatTitle\" },\n\n MiniCompletionActiveParameter = { underline = true },\n\n MiniCursorword = { underline = true },\n MiniCursorwordCurrent = { underline = true },\n\n MiniDepsChangeAdded = { link = \"diffAdded\" },\n MiniDepsChangeRemoved = { link = \"diffRemoved\" },\n MiniDepsHint = { fg = theme.diag.hint },\n MiniDepsInfo = { fg = theme.diag.info },\n MiniDepsMsgBreaking = { fg = theme.diag.warning },\n MiniDepsPlaceholder = { link = \"Comment\" },\n MiniDepsTitle = { link = \"Title\" },\n MiniDepsTitleError = { link = \"DiffDelete\" },\n MiniDepsTitleSame = { link = \"DiffText\" },\n MiniDepsTitleUpdate = { link = \"DiffAdd\" },\n\n MiniDiffSignAdd = { fg = theme.vcs.added, bg = theme.ui.none },\n MiniDiffSignChange = { fg = theme.vcs.changed, bg = theme.ui.none },\n MiniDiffSignDelete = { fg = theme.vcs.removed, bg = theme.ui.none },\n MiniDiffOverAdd = { link = \"DiffAdd\" },\n MiniDiffOverChange = { link = \"DiffText\" },\n MiniDiffOverContext = { link = \"DiffChange\" },\n MiniDiffOverDelete = { link = \"DiffDelete\" },\n\n MiniFilesBorder = { link = \"FloatBorder\" },\n MiniFilesBorderModified = { link = \"DiagnosticFloatingWarn\" },\n MiniFilesCursorLine = { link = \"CursorLine\" },\n MiniFilesDirectory = { link = \"Directory\" },\n MiniFilesFile = { fg = theme.ui.fg },\n MiniFilesNormal = { link = \"NormalFloat\" },\n MiniFilesTitle = {\n fg = theme.ui.special,\n bg = config.transparent and theme.ui.none or theme.ui.float.bg_border,\n bold = config.bold,\n },\n MiniFilesTitleFocused = {\n fg = theme.ui.fg,\n bg = config.transparent and theme.ui.none or theme.ui.float.bg_border,\n bold = config.bold,\n },\n\n MiniHipatternsFixme = { fg = theme.ui.bg, bg = theme.diag.error, bold = config.bold },\n MiniHipatternsHack = { fg = theme.ui.bg, bg = theme.diag.warning, bold = config.bold },\n MiniHipatternsNote = { fg = theme.ui.bg, bg = theme.diag.info, bold = config.bold },\n MiniHipatternsTodo = { fg = theme.ui.bg, bg = theme.diag.hint, bold = config.bold },\n\n MiniIconsAzure = { fg = theme.syn.special1 },\n MiniIconsBlue = { fg = theme.syn.fun },\n MiniIconsCyan = { fg = theme.syn.type },\n MiniIconsGreen = { fg = theme.syn.string },\n MiniIconsGrey = { fg = theme.ui.fg },\n MiniIconsOrange = { fg = theme.syn.constant },\n MiniIconsPurple = { fg = theme.syn.keyword },\n MiniIconsRed = { fg = theme.syn.special3 },\n MiniIconsYellow = { fg = theme.syn.identifier },\n\n MiniIndentscopeSymbol = { fg = theme.syn.special1 },\n MiniIndentscopePrefix = { nocombine = true }, -- Make it invisible\n\n MiniJump = { link = \"SpellRare\" },\n\n MiniJump2dDim = { link = \"Comment\" },\n MiniJump2dSpot = { fg = theme.syn.constant, bold = config.bold, nocombine = true },\n MiniJump2dSpotAhead = { fg = theme.diag.hint, bg = theme.ui.bg_dim, nocombine = true },\n MiniJump2dSpotUnique = { fg = theme.syn.special1, bold = config.bold, nocombine = true },\n\n MiniMapNormal = { link = \"NormalFloat\" },\n MiniMapSymbolCount = { link = \"Special\" },\n MiniMapSymbolLine = { link = \"Title\" },\n MiniMapSymbolView = { link = \"Delimiter\" },\n\n MiniNotifyBorder = { link = \"FloatBorder\" },\n MiniNotifyNormal = { link = \"NormalFloat\" },\n MiniNotifyTitle = { link = \"FloatTitle\" },\n\n MiniOperatorsExchangeFrom = { link = \"IncSearch\" },\n\n MiniPickBorder = { link = \"FloatBorder\" },\n MiniPickBorderBusy = { link = \"DiagnosticFloatingWarn\" },\n MiniPickBorderText = { link = \"FloatTitle\" },\n MiniPickIconDirectory = { link = \"Directory\" },\n MiniPickIconFile = { link = \"MiniPickNormal\" },\n MiniPickHeader = { link = \"DiagnosticFloatingHint\" },\n MiniPickMatchCurrent = { link = \"CursorLine\" },\n MiniPickMatchMarked = { link = \"Visual\" },\n MiniPickMatchRanges = { link = \"DiagnosticFloatingHint\" },\n MiniPickNormal = { link = \"NormalFloat\" },\n MiniPickPreviewLine = { link = \"CursorLine\" },\n MiniPickPreviewRegion = { link = \"IncSearch\" },\n MiniPickPrompt = { fg = theme.syn.fun, bg = config.transparent and theme.ui.none or theme.ui.float.bg_border },\n\n MiniStarterCurrent = { nocombine = true },\n MiniStarterFooter = { fg = theme.syn.deprecated },\n MiniStarterHeader = { link = \"Title\" },\n MiniStarterInactive = { link = \"Comment\" },\n MiniStarterItem = { link = \"Normal\" },\n MiniStarterItemBullet = { link = \"Delimiter\" },\n MiniStarterItemPrefix = { fg = theme.diag.warning },\n MiniStarterSection = { fg = theme.diag.ok },\n MiniStarterQuery = { fg = theme.diag.info },\n\n MiniStatuslineDevinfo = { fg = theme.ui.fg_dim, bg = config.transparent and theme.ui.none or theme.ui.bg_p1 },\n MiniStatuslineFileinfo = { fg = theme.ui.fg_dim, bg = config.transparent and theme.ui.none or theme.ui.bg_p1 },\n MiniStatuslineFilename = { fg = theme.ui.fg_dim, bg = config.transparent and theme.ui.none or theme.ui.bg_dim },\n MiniStatuslineInactive = { link = \"StatusLineNC\" },\n MiniStatuslineModeCommand = { fg = theme.ui.bg, bg = theme.syn.operator, bold = config.bold },\n MiniStatuslineModeInsert = { fg = theme.ui.bg, bg = theme.diag.ok, bold = config.bold },\n MiniStatuslineModeNormal = { fg = theme.ui.bg_m3, bg = theme.syn.fun, bold = config.bold },\n MiniStatuslineModeOther = { fg = theme.ui.bg, bg = theme.syn.type, bold = config.bold },\n MiniStatuslineModeReplace = { fg = theme.ui.bg, bg = theme.syn.constant, bold = config.bold },\n MiniStatuslineModeVisual = { fg = theme.ui.bg, bg = theme.syn.keyword, bold = config.bold },\n\n MiniSurround = { link = \"IncSearch\" },\n\n MiniTablineCurrent = {\n fg = theme.ui.fg_dim,\n bg = config.transparent and theme.ui.none or theme.ui.bg_p1,\n bold = config.bold,\n },\n MiniTablineFill = { link = \"TabLineFill\" },\n MiniTablineHidden = { fg = theme.ui.special, bg = theme.ui.bg_m3 },\n MiniTablineModifiedCurrent = { fg = theme.ui.bg_p1, bg = theme.ui.fg_dim, bold = config.bold },\n MiniTablineModifiedHidden = { fg = theme.ui.bg_m3, bg = theme.ui.special },\n MiniTablineModifiedVisible = { fg = theme.ui.bg_m3, bg = theme.ui.special, bold = config.bold },\n MiniTablineTabpagesection = { fg = theme.ui.fg, bg = theme.ui.bg_search, bold = config.bold },\n MiniTablineVisible = { fg = theme.ui.special, bg = theme.ui.bg_m3, bold = config.bold },\n\n MiniTestEmphasis = { bold = config.bold },\n MiniTestFail = { fg = theme.diag.error, bold = config.bold },\n MiniTestPass = { fg = theme.diag.ok, bold = config.bold },\n\n MiniTrailspace = { bg = theme.vcs.removed },\n\n NeotestAdapterName = { fg = theme.syn.special3 },\n NeotestDir = { fg = theme.syn.fun },\n NeotestExpandMarker = { fg = theme.syn.punct, bold = config.bold },\n NeotestFailed = { fg = theme.diag.error },\n NeotestFile = { fg = theme.syn.fun },\n NeotestFocused = { bold = config.bold, underline = true },\n NeotestIndent = { fg = theme.ui.special, bold = config.bold },\n NeotestMarked = { fg = theme.diag.warning, italic = config.italics },\n NeotestNamespace = { fg = theme.syn.fun },\n NeotestPassed = { fg = theme.diag.ok },\n NeotestRunning = { fg = theme.vcs.changed },\n NeotestWinSelect = { fg = theme.diag.hint },\n NeotestSkipped = { fg = theme.syn.special1 },\n NeotestTarget = { fg = theme.syn.special3 },\n NeotestTest = { fg = theme.ui.float.fg },\n NeotestUnknown = { fg = theme.syn.deprecated },\n NeotestWatching = { fg = theme.vcs.changed },\n\n SnacksPicker = { bg = config.transparent and theme.ui.none or theme.ui.bg },\n SnacksPickerTitle = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },\n SnacksPickerBorder = { fg = theme.ui.none, bg = theme.ui.none },\n SnacksPickerNormal = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },\n SnacksPickerMatch = { fg = theme.ui.fg },\n SnacksPickerCursor = { fg = theme.ui.bg, bg = theme.ui.bg },\n SnacksPickerPrompt = { fg = theme.ui.fg },\n SnacksPickerDim = { fg = theme.ui.fg_dim },\n SnacksInputIcon = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },\n SnacksIndent = { fg = theme.ui.indent_line, nocombine = true },\n SnacksIndentChunk = { fg = theme.ui.active_indent_line, nocombine = true },\n SnacksIndentScope = { fg = theme.ui.active_indent_line, nocombine = true },\n SnacksPickerListCursorLine = { fg = theme.ui.fg, bg = theme.ui.bg_p2 },\n SnacksPickerInputBorder = { fg = theme.ui.none, bg = theme.ui.none },\n SnacksPickerInputTitle = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },\n SnacksPickerBoxTitle = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },\n SnacksPickerSelected = { fg = theme.ui.bg },\n SnacksPickerPickWinCurrent = {\n fg = theme.ui.fg,\n bg = config.transparent and theme.ui.none or theme.ui.bg,\n bold = config.bold,\n },\n SnacksPickerPickWin = {\n fg = theme.ui.fg,\n bg = config.transparent and theme.ui.none or theme.ui.bg_search,\n bold = config.bold,\n },\n\n BufferLineBackground = { fg = theme.ui.none, bg = theme.ui.none },\n BufferLineBuffer = { fg = theme.ui.none, bg = theme.ui.none },\n BufferLineBufferSelected = { bg = theme.ui.none, fg = theme.ui.fg },\n BufferLineBufferVisible = { bg = theme.ui.none },\n BufferLineCloseButton = { bg = theme.ui.none },\n BufferLineCloseButtonSelected = { bg = theme.ui.none },\n BufferLineCloseButtonVisible = { bg = theme.ui.none },\n BufferLineDuplicate = { bg = theme.ui.none },\n BufferLineDuplicateSelected = { bg = theme.ui.none },\n BufferLineDuplicateVisible = { bg = theme.ui.none },\n BufferLineError = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineErrorDiagnostic = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineErrorDiagnosticSelected = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineErrorDiagnosticVisible = { bg = theme.ui.none },\n BufferLineErrorSelected = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineErrorVisible = { bg = theme.ui.none },\n BufferLineFill = { bg = theme.ui.none },\n BufferLineHint = { sp = theme.ui.none, bg = theme.ui.none },\n BufferLineHintDiagnostic = { sp = theme.ui.none, bg = theme.ui.none },\n BufferLineHintDiagnosticSelected = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineHintDiagnosticVisible = { bg = theme.ui.none },\n BufferLineHintSelected = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineHintVisible = { bg = theme.ui.none },\n BufferLineInfo = { sp = theme.ui.none, bg = theme.ui.none },\n BufferLineInfoDiagnostic = { sp = theme.ui.none, bg = theme.ui.none },\n BufferLineInfoDiagnosticSelected = { sp = theme.ui.none, bg = theme.ui.none },\n BufferLineInfoDiagnosticVisible = { bg = theme.ui.none },\n BufferLineInfoSelected = { bg = theme.ui.none, sp = theme.ui.none },\n BufferLineInfoVisible = { bg = theme.ui.none },\n BufferLineIndicatorSelected = { bg = theme.ui.none },\n BufferLineModified = { bg = theme.ui.none },\n BufferLineModifiedSelected = { bg = theme.ui.none },\n BufferLineModifiedVisible = { bg = theme.ui.none },\n BufferLineNumbers = { bg = theme.ui.none },\n BufferLineNumbersSelected = { bg = theme.ui.none },\n BufferLineNumbersVisible = { bg = theme.ui.none },\n BufferLineOffsetSeparator = { bg = theme.ui.none },\n BufferLineSeparator = { bg = theme.ui.none },\n BufferLineSeparatorSelected = { bg = theme.ui.none },\n BufferLineSeparatorVisible = { bg = theme.ui.none },\n BufferLineTab = { bg = theme.ui.none },\n BufferLinePick = { bg = theme.ui.none },\n BufferLinePickSelected = { bg = theme.ui.none },\n BufferLineDevIconLua = { bg = theme.ui.none },\n BufferLineDevIconLuaSelected = { bg = theme.ui.none },\n BufferLineDevIconLuaVisible = { bg = theme.ui.none },\n BufferLineDevIconLuaInactive = { bg = theme.ui.none },\n BufferLinePickVisible = { bg = theme.ui.none },\n BufferLineIndicatorVisible = { bg = theme.ui.none },\n BufferLineTabClose = { bg = theme.ui.none },\n BufferLineTabSelected = { bg = theme.ui.none },\n BufferLineTabSeparator = { bg = theme.ui.none },\n BufferLineTabSeparatorSelected = { bg = theme.ui.none },\n BufferLineTruncMarker = { bg = theme.ui.none },\n BufferLineWarning = { bg = theme.ui.none },\n BufferLineWarningDiagnostic = { bg = theme.ui.none },\n BufferLineWarningDiagnosticSelected = { bg = theme.ui.none },\n BufferLineWarningDiagnosticVisible = { bg = theme.ui.none },\n BufferLineWarningSelected = { bg = theme.ui.none },\n BufferLineWarningVisible = { bg = theme.ui.none },\n }\nend\n\nreturn M\n"], ["/kanso.nvim/extras/wezterm/kanso-zen.lua", "local config = {\n force_reverse_video_cursor = true,\n colors = {\n foreground = \"#C5C9C7\",\n background = \"#090E13\",\n\n cursor_bg = \"#090E13\",\n cursor_fg = \"#C5C9C7\",\n cursor_border = \"#C5C9C7\",\n\n selection_fg = \"#C5C9C7\",\n selection_bg = \"#22262D\",\n\n scrollbar_thumb = \"#22262D\",\n split = \"#22262D\",\n\n ansi = {\n \"#090E13\",\n \"#C4746E\",\n \"#8A9A7B\",\n \"#C4B28A\",\n \"#8BA4B0\",\n \"#A292A3\",\n \"#8EA4A2\",\n \"#A4A7A4\",\n },\n brights = {\n \"#A4A7A4\",\n \"#E46876\",\n \"#87A987\",\n \"#E6C384\",\n \"#7FB4CA\",\n \"#938AA9\",\n \"#7AA89F\",\n \"#C5C9C7\",\n },\n },\n}\n\nreturn config\n"], ["/kanso.nvim/extras/wezterm/kanso-pearl.lua", "-- Kanso Pearl\nlocal config = {\n force_reverse_video_cursor = true,\n colors = {\n foreground = \"#22262D\",\n background = \"#F2F1EF\",\n\n cursor_bg = \"#22262D\",\n cursor_fg = \"#F2F1EF\",\n cursor_border = \"#C5C9C7\",\n\n selection_fg = \"#22262D\",\n selection_bg = \"#E2E1DF\",\n\n scrollbar_thumb = \"#43464E\",\n split = \"#43464E\",\n\n ansi = {\n \"#22262D\",\n \"#c84053\",\n \"#6f894e\",\n \"#77713f\",\n \"#4d699b\",\n \"#b35b79\",\n \"#597b75\",\n \"#545464\",\n },\n brights = {\n \"#6d6f6e\",\n \"#d7474b\",\n \"#6e915f\",\n \"#836f4a\",\n \"#6693bf\",\n \"#624c83\",\n \"#5e857a\",\n \"#43436c\",\n },\n },\n}\n\nreturn config\n"], ["/kanso.nvim/extras/wezterm/kanso-ink.lua", "local config = {\n force_reverse_video_cursor = true,\n colors = {\n foreground = \"#C5C9C7\",\n background = \"#14171d\",\n\n cursor_bg = \"#C5C9C7\",\n cursor_fg = \"#14171d\",\n cursor_border = \"#C5C9C7\",\n\n selection_fg = \"#C5C9C7\",\n selection_bg = \"#393B44\",\n\n scrollbar_thumb = \"#393B44\",\n split = \"#393B44\",\n\n ansi = {\n \"#14171d\",\n \"#C4746E\",\n \"#8A9A7B\",\n \"#C4B28A\",\n \"#8BA4B0\",\n \"#A292A3\",\n \"#8EA4A2\",\n \"#A4A7A4\",\n },\n brights = {\n \"#A4A7A4\",\n \"#E46876\",\n \"#87A987\",\n \"#E6C384\",\n \"#7FB4CA\",\n \"#938AA9\",\n \"#7AA89F\",\n \"#C5C9C7\",\n },\n },\n}\n\nreturn config\n"], ["/kanso.nvim/lua/kanso/highlights/init.lua", "local M = {}\n\n---@param highlights table\n---@param termcolors table\nfunction M.highlight(highlights, termcolors)\n for hl, spec in pairs(highlights) do\n vim.api.nvim_set_hl(0, hl, spec)\n end\n for i, tcolor in ipairs(termcolors) do\n vim.g[\"terminal_color_\" .. i - 1] = tcolor\n end\nend\n\n---@param colors KansoColors\n---@param config? KansoConfig\nfunction M.setup(colors, config)\n config = config or require(\"kanso\").config\n\n local highlights = {}\n for _, highlight in ipairs({ \"editor\", \"syntax\", \"treesitter\", \"lsp\", \"plugins\" }) do\n local mod = require(\"kanso.highlights.\" .. highlight)\n for hl, spec in pairs(mod.setup(colors, config)) do\n highlights[hl] = spec\n end\n end\n\n for hl, spec in pairs(config.overrides(colors)) do\n if highlights[hl] and next(spec) then\n highlights[hl].link = nil\n end\n highlights[hl] = vim.tbl_extend(\"force\", highlights[hl] or {}, spec)\n end\n\n return highlights\nend\n\nreturn M\n"], ["/kanso.nvim/lua/kanso/highlights/editor.lua", "-- local c = require(\"kanso.color\")\nlocal M = {}\n\n---@param colors KansoColors\n---@param config? KansoConfig\nfunction M.setup(colors, config)\n local theme = colors.theme\n config = config or require(\"kanso\").config\n\n return {\n -- ColorColumn\tUsed for the columns set with 'colorcolumn'.\n ColorColumn = { bg = theme.ui.bg_p1 },\n -- Conceal\t\tPlaceholder characters substituted for concealed text (see 'conceallevel').\n Conceal = { fg = theme.ui.special, bold = config.bold },\n -- CurSearch\tUsed for highlighting a search pattern under the cursor (see 'hlsearch').\n CurSearch = { fg = theme.ui.fg, bg = theme.ui.bg_search, bold = config.bold },\n -- Cursor\t\tCharacter under the cursor.\n Cursor = { fg = theme.ui.cursor_fg, bg = theme.ui.cursor_bg },\n -- lCursor\t\tCharacter under the cursor when |language-mapping| is used (see 'guicursor').\n lCursor = { link = \"Cursor\" },\n -- CursorIM\tLike Cursor, but used when in IME mode.\n CursorIM = { link = \"Cursor\" },\n -- CursorColumn\tScreen-column at the cursor, when 'cursorcolumn' is set.\n CursorColumn = { link = \"CursorLine\" },\n -- CursorLine\tScreen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set.\n CursorLine = { bg = theme.ui.bg_p2 },\n -- Directory\tDirectory names (and other special names in listings).\n Directory = { fg = theme.syn.fun },\n -- DiffAdd\t\tDiff mode: Added line. |diff.txt|\n DiffAdd = { bg = theme.diff.add },\n -- DiffChange\tDiff mode: Changed line. |diff.txt|\n DiffChange = { bg = theme.diff.change },\n -- DiffDelete\tDiff mode: Deleted line. |diff.txt|\n DiffDelete = { fg = theme.vcs.removed, bg = theme.diff.delete },\n -- DiffText\tDiff mode: Changed text within a changed line. |diff.txt|\n DiffText = { bg = theme.diff.text },\n -- EndOfBuffer\tFiller lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.\n EndOfBuffer = { fg = theme.ui.bg },\n -- TermCursor\tCursor in a focused terminal.\n -- TermCursorNC\tCursor in an unfocused terminal.\n -- ErrorMsg\tError messages on the command line.\n ErrorMsg = { fg = theme.diag.error },\n -- WinSeparator\tSeparators between window splits.\n WinSeparator = { fg = theme.ui.bg_m3, bg = config.dimInactive and theme.ui.bg_dim or theme.ui.none },\n VertSplit = { link = \"WinSeparator\" },\n -- Folded\t\tLine used for closed folds.\n Folded = { fg = theme.ui.special, bg = theme.ui.bg_p1 },\n -- FoldColumn\t'foldcolumn'\n FoldColumn = { fg = theme.ui.nontext, bg = theme.ui.none },\n -- SignColumn\tColumn where |signs| are displayed.\n SignColumn = { fg = theme.ui.special, bg = theme.ui.none },\n -- IncSearch\t'incsearch' highlighting; also used for the text replaced with \":s///c\".\n IncSearch = { fg = theme.ui.fg_reverse, bg = theme.diag.warning },\n -- Substitute\t|:substitute| replacement text highlighting.\n Substitute = { fg = theme.ui.fg, bg = theme.vcs.removed },\n -- LineNr\t\tLine number for \":number\" and \":#\" commands, and when 'number' or 'relativenumber' option is set.\n LineNr = { fg = theme.ui.cursor_line_nr_foreground, bg = theme.ui.none },\n -- LineNrAbove\tLine number for when the 'relativenumber' option is set, above the cursor line.\n -- LineNrBelow\tLine number for when the 'relativenumber' option is set, below the cursor line.\n -- CursorLineNr\tLike LineNr when 'cursorline' is set and 'cursorlineopt' contains \"number\" or is \"both\", for the cursor line.\n CursorLineNr = { fg = theme.ui.cursor_line_nr_active_foreground, bg = theme.ui.none },\n -- CursorLineFold\tLike FoldColumn when 'cursorline' is set for the cursor line.\n -- CursorLineSign\tLike SignColumn when 'cursorline' is set for the cursor line.\n -- MatchParen\tCharacter under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt|\n MatchParen = { fg = theme.diag.warning, bold = config.bold },\n -- ModeMsg\t\t'showmode' message (e.g., \"-- INSERT --\").\n ModeMsg = { fg = theme.diag.warning, bold = config.bold },\n -- MsgArea\t\tArea for messages and cmdline.\n MsgArea = vim.o.cmdheight == 0 and { link = \"StatusLine\" } or { fg = theme.ui.fg_dim },\n -- MsgSeparator\tSeparator for scrolled messages |msgsep|.\n MsgSeparator = { bg = vim.o.cmdheight == 0 and theme.ui.bg or theme.ui.bg_m3 },\n -- MoreMsg\t\t|more-prompt|\n MoreMsg = { fg = theme.diag.info },\n -- NonText\t\t'@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., \">\" displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|.\n NonText = { fg = theme.ui.nontext },\n -- Normal\t\tNormal text.\n Normal = { fg = theme.ui.fg, bg = config.transparent and theme.ui.none or theme.ui.bg },\n -- NormalFloat\tNormal text in floating windows.\n NormalFloat = { fg = theme.ui.float.fg, bg = config.transparent and theme.ui.none or theme.ui.float.bg },\n -- FloatBorder\tBorder of floating windows.\n FloatBorder = {\n fg = theme.ui.float.fg_border,\n bg = config.transparent and theme.ui.none or theme.ui.float.bg_border,\n },\n -- FloatTitle\tTitle of floating windows.\n FloatTitle = {\n fg = theme.ui.special,\n bg = config.transparent and theme.ui.none or theme.ui.float.bg_border,\n bold = config.bold,\n },\n -- FloatFooter\tFooter of floating windows.\n FloatFooter = { fg = theme.ui.nontext, bg = config.transparent and theme.ui.none or theme.ui.float.bg_border },\n -- NormalNC\tNormal text in non-current windows.\n NormalNC = config.dimInactive and { fg = theme.ui.fg_dim, bg = theme.ui.bg_dim } or { link = \"Normal\" },\n -- Pmenu\t\tPopup menu: Normal item.\n Pmenu = { fg = theme.ui.pmenu.fg, bg = config.transparent and theme.ui.none or theme.ui.pmenu.bg },\n -- PmenuSel\tPopup menu: Selected item.\n PmenuSel = { fg = theme.ui.pmenu.fg_sel, bg = theme.ui.pmenu.bg_sel },\n -- PmenuKind\tPopup menu: Normal item \"kind\".\n PmenuKind = { fg = theme.ui.fg_dim, bg = config.transparent and theme.ui.none or theme.ui.pmenu.bg },\n -- PmenuKindSel\tPopup menu: Selected item \"kind\".\n PmenuKindSel = { fg = theme.ui.fg_dim, bg = theme.ui.pmenu.bg_sel },\n -- PmenuExtra\tPopup menu: Normal item \"extra text\".\n PmenuExtra = { fg = theme.ui.special, bg = theme.ui.pmenu.bg },\n -- PmenuExtraSel\tPopup menu: Selected item \"extra text\".\n PmenuExtraSel = { fg = theme.ui.special, bg = theme.ui.pmenu.bg_sel },\n -- PmenuSbar\tPopup menu: Scrollbar.\n PmenuSbar = { bg = config.transparent and theme.ui.none or theme.ui.pmenu.bg_sbar },\n -- PmenuThumb\tPopup menu: Thumb of the scrollbar.\n PmenuThumb = { bg = theme.ui.pmenu.bg_thumb },\n -- Question\t|hit-enter| prompt and yes/no questions.\n Question = { link = \"MoreMsg\" },\n -- QuickFixLine\tCurrent |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.\n QuickFixLine = { bg = config.transparent and theme.ui.none or theme.ui.bg_p1 },\n -- Search\t\tLast search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out.\n Search = { fg = theme.ui.fg, bg = theme.ui.bg_search },\n -- SpecialKey\tUnprintable characters: Text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace|\n SpecialKey = { fg = theme.ui.special },\n -- SpellBad\tWord that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise.\n SpellBad = { undercurl = config.undercurl, underline = not config.undercurl, sp = theme.diag.error },\n -- SpellCap\tWord that should start with a capital. |spell| Combined with the highlighting used otherwise.\n SpellCap = { undercurl = config.undercurl, underline = not config.undercurl, sp = theme.diag.warning },\n -- SpellLocal\tWord that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise.\n SpellLocal = { undercurl = config.undercurl, underline = not config.undercurl, sp = theme.diag.warning },\n -- SpellRare\tWord that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise.\n SpellRare = { undercurl = config.undercurl, underline = not config.undercurl, sp = theme.diag.warning },\n -- StatusLine\tStatus line of current window.\n StatusLine = { fg = theme.ui.fg_dim, bg = theme.ui.none },\n -- StatusLineNC\tStatus lines of not-current windows. Note: If this is equal to \"StatusLine\", Vim will use \"^^^\" in the status line of the current window.\n StatusLineNC = { fg = theme.ui.nontext, bg = theme.ui.none },\n -- TabLine\t\tTab pages line, not active tab page label.\n TabLine = { bg = theme.ui.none, fg = theme.ui.special },\n -- TabLineFill\tTab pages line, where there are no labels.\n TabLineFill = { bg = theme.ui.none },\n -- TabLineSel\tTab pages line, active tab page label.\n TabLineSel = {\n fg = theme.ui.fg_dim,\n bg = not config.transparent and theme.ui.bg_p1 or theme.ui.none,\n bold = config.bold,\n },\n -- Title\t\tTitles for output from \":set all\", \":autocmd\" etc.\n Title = { fg = theme.syn.fun, bold = config.bold },\n -- Visual\t\tVisual mode selection.\n Visual = { bg = theme.ui.bg_visual },\n -- VisualNOS\tVisual mode selection when vim is \"Not Owning the Selection\".\n VisualNOS = { link = \"Visual\" },\n -- WarningMsg\tWarning messages.\n WarningMsg = { fg = theme.diag.warning },\n -- Whitespace\t\"nbsp\", \"space\", \"tab\", \"multispace\", \"lead\" and \"trail\" in 'listchars'.\n Whitespace = { fg = theme.ui.whitespace },\n -- WildMenu\tCurrent match in 'wildmenu' completion.\n WildMenu = { link = \"Pmenu\" },\n -- WinBar\t\tWindow bar of current window.\n WinBar = { fg = theme.ui.fg_dim, bg = theme.ui.none },\n -- WinBarNC\tWindow bar of not-current windows.\n WinBarNC = { fg = theme.ui.fg_dim, bg = config.dimInactive and theme.ui.bg_dim or theme.ui.none },\n\n -- SignColumnSB = { link = \"SignColumn\" },\n -- NormalSB = { link = \"Normal\" },\n\n debugPC = { bg = theme.diff.delete },\n debugBreakpoint = { fg = theme.syn.special1, bg = theme.ui.none },\n\n LspReferenceText = { bg = theme.ui.bg_p2 },\n LspReferenceRead = { link = \"LspReferenceText\" },\n LspReferenceWrite = { bg = theme.ui.bg_p2, underline = true },\n -- LspInlayHint = { link = \"NonText\"},\n\n DiagnosticError = { fg = theme.diag.error },\n DiagnosticWarn = { fg = theme.diag.warning },\n DiagnosticInfo = { fg = theme.diag.info },\n DiagnosticHint = { fg = theme.diag.hint },\n DiagnosticOk = { fg = theme.diag.ok },\n\n DiagnosticFloatingError = { fg = theme.diag.error },\n DiagnosticFloatingWarn = { fg = theme.diag.warning },\n DiagnosticFloatingInfo = { fg = theme.diag.info },\n DiagnosticFloatingHint = { fg = theme.diag.hint },\n DiagnosticFloatingOk = { fg = theme.diag.ok },\n\n DiagnosticSignError = { fg = theme.diag.error, bg = theme.ui.none },\n DiagnosticSignWarn = { fg = theme.diag.warning, bg = theme.ui.none },\n DiagnosticSignInfo = { fg = theme.diag.info, bg = theme.ui.none },\n DiagnosticSignHint = { fg = theme.diag.hint, bg = theme.ui.none },\n\n DiagnosticVirtualTextError = { link = \"DiagnosticError\" },\n DiagnosticVirtualTextWarn = { link = \"DiagnosticWarn\" },\n DiagnosticVirtualTextInfo = { link = \"DiagnosticInfo\" },\n DiagnosticVirtualTextHint = { link = \"DiagnosticHint\" },\n\n DiagnosticUnderlineError = {\n undercurl = config.undercurl,\n underline = not config.undercurl,\n sp = theme.diag.error,\n },\n DiagnosticUnderlineWarn = {\n undercurl = config.undercurl,\n underline = not config.undercurl,\n sp = theme.diag.warning,\n },\n DiagnosticUnderlineInfo = {\n undercurl = config.undercurl,\n underline = not config.undercurl,\n sp = theme.diag.info,\n },\n DiagnosticUnderlineHint = {\n undercurl = config.undercurl,\n underline = not config.undercurl,\n sp = theme.diag.hint,\n },\n\n LspSignatureActiveParameter = { fg = theme.diag.warning },\n LspCodeLens = { fg = theme.syn.comment },\n\n -- vcs\n diffAdded = { fg = theme.vcs.added },\n diffRemoved = { fg = theme.vcs.removed },\n diffDeleted = { fg = theme.vcs.removed },\n diffChanged = { fg = theme.vcs.changed },\n diffOldFile = { fg = theme.vcs.removed },\n diffNewFile = { fg = theme.vcs.added },\n -- diffFile = { fg = c.steelGray },\n -- diffLine = { fg = c.steelGray },\n -- diffIndexLine = { link = 'Identifier' },\n }\nend\n\nreturn M\n"], ["/kanso.nvim/extras/wezterm/kanso-mist.lua", "-- Kanso Mist WezTerm Colors\nlocal config = {\n force_reverse_video_cursor = true,\n colors = {\n foreground = \"#C5C9C7\",\n background = \"#22262D\",\n\n cursor_bg = \"#C5C9C7\",\n cursor_fg = \"#22262D\",\n cursor_border = \"#C5C9C7\",\n\n selection_fg = \"#C5C9C7\",\n selection_bg = \"#43464E\",\n\n scrollbar_thumb = \"#43464E\",\n split = \"#43464E\",\n\n ansi = {\n \"#22262D\",\n \"#C4746E\",\n \"#8A9A7B\",\n \"#C4B28A\",\n \"#8BA4B0\",\n \"#A292A3\",\n \"#8EA4A2\",\n \"#a4a7a4\",\n },\n brights = {\n \"#5C6066\",\n \"#E46876\",\n \"#87A987\",\n \"#E6C384\",\n \"#7FB4CA\",\n \"#938AA9\",\n \"#7AA89F\",\n \"#C5C9C7\",\n },\n },\n}\n\nreturn config\n"], ["/kanso.nvim/lua/kanso/init.lua", "local M = {}\n\n---@alias ColorSpec string RGB Hex string\n---@alias ColorTable table\n---@alias KansoColorsSpec { palette: ColorTable, theme: ColorTable }\n---@alias KansoColors { palette: PaletteColors, theme: ThemeColors }\n\n--- default config\n---@class KansoConfig\nM.config = {\n bold = true,\n italics = true,\n undercurl = true,\n commentStyle = { italic = true },\n functionStyle = {},\n keywordStyle = { italic = true },\n statementStyle = {},\n typeStyle = {},\n transparent = false,\n dimInactive = false,\n terminalColors = true,\n colors = { theme = { zen = {}, pearl = {}, ink = {}, all = {} }, palette = {} },\n ---@type fun(colors: KansoColorsSpec): table\n overrides = function()\n return {}\n end,\n ---@type { dark: string, light: string }\n background = { dark = \"ink\", light = \"pearl\" },\n theme = \"ink\",\n ---@type { dark: \"default\"|\"contrast\", light: \"default\"|\"contrast\" }|\"default\"|\"contrast\"\n foreground = \"default\",\n compile = false,\n}\n\nlocal function check_config(_)\n local err\n return not err\nend\n\n--- update global configuration with user settings\n---@param config? KansoConfig user configuration\nfunction M.setup(config)\n if check_config(config) then\n M.config = vim.tbl_deep_extend(\"force\", M.config, config or {})\n else\n vim.notify(\"Kanso: Errors found while loading user config. Using default config.\", vim.log.levels.ERROR)\n end\nend\n\n--- load the colorscheme\n---@param theme? string\nfunction M.load(theme)\n local utils = require(\"kanso.utils\")\n\n theme = theme or M.config.background[vim.o.background] or M.config.theme\n M._CURRENT_THEME = theme\n\n if vim.g.colors_name then\n vim.cmd(\"hi clear\")\n end\n\n vim.g.colors_name = \"kanso\"\n vim.o.termguicolors = true\n\n -- Setup autocommand to reload theme when background changes\n if not M._autocmd_created then\n M._autocmd_created = true\n vim.api.nvim_create_autocmd(\"OptionSet\", {\n pattern = \"background\",\n callback = function()\n if vim.g.colors_name == \"kanso\" then\n -- Clear cached modules to force reload\n package.loaded[\"kanso.colors\"] = nil\n package.loaded[\"kanso.themes\"] = nil\n M.load()\n end\n end,\n })\n end\n\n if M.config.compile then\n if utils.load_compiled(theme) then\n return\n end\n\n M.compile()\n utils.load_compiled(theme)\n else\n local foreground_setting = type(M.config.foreground) == \"table\" and M.config.foreground[vim.o.background]\n or M.config.foreground\n ---@cast foreground_setting \"default\"|\"contrast\"\n local colors =\n require(\"kanso.colors\").setup({ theme = theme, colors = M.config.colors, foreground = foreground_setting })\n local highlights = require(\"kanso.highlights\").setup(colors, M.config)\n require(\"kanso.highlights\").highlight(highlights, M.config.terminalColors and colors.theme.term or {})\n end\nend\n\nfunction M.compile()\n for theme, _ in pairs(require(\"kanso.themes\")) do\n -- Compile both foreground variants if foreground is a table\n if type(M.config.foreground) == \"table\" then\n -- Compile for dark mode\n local colors_dark = require(\"kanso.colors\").setup({\n theme = theme,\n colors = M.config.colors,\n foreground = M.config.foreground.dark,\n })\n local highlights_dark = require(\"kanso.highlights\").setup(colors_dark, M.config)\n require(\"kanso.utils\").compile(\n theme .. \"_dark_\" .. M.config.foreground.dark,\n highlights_dark,\n M.config.terminalColors and colors_dark.theme.term or {}\n )\n\n -- Compile for light mode\n local colors_light = require(\"kanso.colors\").setup({\n theme = theme,\n colors = M.config.colors,\n foreground = M.config.foreground.light,\n })\n local highlights_light = require(\"kanso.highlights\").setup(colors_light, M.config)\n require(\"kanso.utils\").compile(\n theme .. \"_light_\" .. M.config.foreground.light,\n highlights_light,\n M.config.terminalColors and colors_light.theme.term or {}\n )\n else\n -- Fallback for backward compatibility\n local foreground_str = M.config.foreground\n ---@cast foreground_str \"default\"|\"contrast\"\n local colors = require(\"kanso.colors\").setup({\n theme = theme,\n colors = M.config.colors,\n foreground = foreground_str,\n })\n local highlights = require(\"kanso.highlights\").setup(colors, M.config)\n require(\"kanso.utils\").compile(theme, highlights, M.config.terminalColors and colors.theme.term or {})\n end\n end\nend\n\nvim.api.nvim_create_user_command(\"KansoCompile\", function()\n for mod, _ in pairs(package.loaded) do\n if mod:match(\"^kanso%.\") then\n package.loaded[mod] = nil\n end\n end\n M.compile()\n vim.notify(\"Kanso: compiled successfully!\", vim.log.levels.INFO)\n M.load(M._CURRENT_THEME)\n vim.api.nvim_exec_autocmds(\"ColorScheme\", { modeline = false })\nend, {})\n\nreturn M\n"], ["/kanso.nvim/lua/lualine/themes/kanso.lua", "local theme = require(\"kanso.colors\").setup().theme\n\nlocal kanso = {}\n\nkanso.normal = {\n a = { bg = theme.ui.fg, fg = theme.ui.bg },\n b = { bg = theme.ui.none, fg = theme.ui.fg },\n c = { bg = theme.ui.none, fg = theme.ui.fg },\n}\n\nkanso.insert = {\n a = { bg = theme.diag.ok, fg = theme.ui.bg },\n b = { bg = theme.ui.none, fg = theme.diag.ok },\n}\n\nkanso.command = {\n a = { bg = theme.syn.operator, fg = theme.ui.bg },\n b = { bg = theme.ui.none, fg = theme.syn.operator },\n}\n\nkanso.visual = {\n a = { bg = theme.syn.keyword, fg = theme.ui.bg },\n b = { bg = theme.ui.none, fg = theme.syn.keyword },\n}\n\nkanso.replace = {\n a = { bg = theme.syn.constant, fg = theme.ui.bg },\n b = { bg = theme.ui.none, fg = theme.syn.constant },\n}\n\nkanso.inactive = {\n a = { bg = theme.ui.none, fg = theme.ui.fg_dim },\n b = { bg = theme.ui.none, fg = theme.ui.fg_dim },\n c = { bg = theme.ui.none, fg = theme.ui.fg_dim },\n}\n\nif vim.g.kanso_lualine_bold then\n for _, mode in pairs(kanso) do\n mode.a.gui = \"bold\"\n end\nend\n\nreturn kanso\n"], ["/kanso.nvim/lua/kanso/highlights/lsp.lua", "local M = {}\n---@param colors KansoColors\n---@param config? KansoConfig\nfunction M.setup(colors, config)\n config = config or require(\"kanso\").config\n local theme = colors.theme\n return {\n -- [\"@lsp.type.class\"] = { link = \"Structure\" },\n -- [\"@lsp.type.decorator\"] = { link = \"Function\" },\n -- [\"@lsp.type.enum\"] = { link = \"Structure\" },\n -- [\"@lsp.type.enumMember\"] = { link = \"Constant\" },\n -- [\"@lsp.type.function\"] = { link = \"Function\" },\n -- [\"@lsp.type.interface\"] = { link = \"Structure\" },\n [\"@lsp.type.macro\"] = { link = \"Macro\" },\n [\"@lsp.type.method\"] = { link = \"@function.method\" }, -- Function\n [\"@lsp.type.namespace\"] = { link = \"@module\" }, -- Structure\n [\"@lsp.type.parameter\"] = { link = \"@variable.parameter\" }, -- Identifier\n -- [\"@lsp.type.property\"] = { link = \"Identifier\" },\n -- [\"@lsp.type.struct\"] = { link = \"Structure\" },\n -- [\"@lsp.type.type\"] = { link = \"Type\" },\n -- [\"@lsp.type.typeParameter\"] = { link = \"TypeDef\" },\n [\"@lsp.type.variable\"] = { fg = \"none\" }, -- Identifier\n [\"@lsp.type.comment\"] = { link = \"Comment\" }, -- Comment\n\n [\"@lsp.type.const\"] = { link = \"Constant\" },\n [\"@lsp.type.comparison\"] = { link = \"Operator\" },\n [\"@lsp.type.bitwise\"] = { link = \"Operator\" },\n [\"@lsp.type.punctuation\"] = { link = \"Delimiter\" },\n\n [\"@lsp.type.selfParameter\"] = { link = \"@variable.builtin\" },\n -- [\"@lsp.type.builtinConstant\"] = { link = \"@constant.builtin\" },\n [\"@lsp.type.builtinConstant\"] = { link = \"@constant.builtin\" },\n [\"@lsp.type.magicFunction\"] = { link = \"@function.builtin\" },\n\n [\"@lsp.mod.readonly\"] = { link = \"Constant\" },\n [\"@lsp.mod.typeHint\"] = { link = \"Type\" },\n -- [\"@lsp.mod.defaultLibrary\"] = { link = \"Special\" },\n -- [\"@lsp.mod.builtin\"] = { link = \"Special\" },\n\n [\"@lsp.typemod.operator.controlFlow\"] = { link = \"@keyword.exception\" }, -- rust ? operator\n [\"@lsp.type.lifetime\"] = { link = \"Operator\" },\n [\"@lsp.typemod.keyword.documentation\"] = { link = \"Special\" },\n [\"@lsp.type.decorator.rust\"] = { link = \"PreProc\" },\n\n [\"@lsp.typemod.variable.global\"] = { link = \"Constant\" },\n [\"@lsp.typemod.variable.static\"] = { link = \"Constant\" },\n [\"@lsp.typemod.variable.defaultLibrary\"] = { link = \"Special\" },\n\n [\"@lsp.typemod.function.builtin\"] = { link = \"@function.builtin\" },\n [\"@lsp.typemod.function.defaultLibrary\"] = { link = \"@function.builtin\" },\n [\"@lsp.typemod.method.defaultLibrary\"] = { link = \"@function.builtin\" },\n\n [\"@lsp.typemod.variable.injected\"] = { link = \"@variable\" },\n\n [\"@lsp.typemod.function.readonly\"] = { fg = theme.syn.fun, bold = config.bold },\n }\nend\n\nreturn M\n--vim: fdm=marker\n"]], "task_instance_info": {"created_time": "2025-08-21 00:48:00", "created_task_model": "DeepSeek-R1", "function_skeleton": "function (tuple) end", "code_description": "This code segment functions to: Convert normalized RGB color values into a hexadecimal string representation by scaling each component to integer values and mapping them to corresponding hexadecimal characters."}, "inference_content": {"inference_model": "DeepSeek-R1", "inference_result": "```lua\n[TASK_BEGIN]\nfunction(tuple)\n local function to_hex(c)\n c = math.max(0, math.min(1, c))\n return string.format(\"%02x\", math.floor(c * 255 + 0.5))\n end\n return \"#\" .. to_hex(tuple[1]) .. to_hex(tuple[2]) .. to_hex(tuple[3])\nend\n[TASK_END]\n```", "inference_time": "2025-08-21 00-49-11"}, "editdistance_info": {"edit_distance": 16.1538, "calculate_time": "2025-08-21 00:49:11", "true_code_clean": "function(tuple)\n local h = \"#\"\n for i = 1, 3 do\n local c = math.floor(tuple[i] * 255 + 0.5)\n local digit2 = math.fmod(c, 16)\n local x = (c - digit2) / 16\n local digit1 = math.floor(x)\n h = h .. string.sub(hexChars, digit1 + 1, digit1 + 1)\n h = h .. string.sub(hexChars, digit2 + 1, digit2 + 1)\n end\n return h\nend", "predict_code_clean": "function(tuple)\n local function to_hex(c)\n c = math.max(0, math.min(1, c))\n return string.format(\"%02x\", math.floor(c * 255 + 0.5))\n end\n return \"#\" .. to_hex(tuple[1]) .. to_hex(tuple[2]) .. to_hex(tuple[3])\nend"}}