mirror of
https://codeberg.org/pnx/skift.nvim.git
synced 2026-06-16 04:24:57 +02:00
121 lines
6.3 KiB
Lua
121 lines
6.3 KiB
Lua
local M = {}
|
|
|
|
---@param c Colors
|
|
function M.get(c)
|
|
return {
|
|
["@variable"] = { fg = c.variable },
|
|
["@variable.builtin"] = { fg = c.variable, italic = true },
|
|
["@variable.parameter"] = { link = "@variable" },
|
|
["@variable.parameter.builtin"] = { link = "@variable.builtin" },
|
|
["@variable.member"] = { link = "@variable" },
|
|
|
|
["@property"] = { fg = c.property },
|
|
|
|
["@constant"] = { fg = c.constant },
|
|
["@constant.builtin"] = { fg = c.constant, bold = true },
|
|
["@constant.macro"] = { fg = c.special, bold = true },
|
|
|
|
["@preproc"] = { link = "PreProc" },
|
|
["@module"] = { link = "@preproc" },
|
|
["@module.builtin"] = { link = "@module" },
|
|
|
|
["@label"] = { fg = c.tag },
|
|
|
|
["@string"] = { link = "String" },
|
|
["@string.documentation"] = { link = "@string" },
|
|
["@string.escape"] = { fg = c.special },
|
|
["@string.regexp"] = { fg = c.special },
|
|
["@string.special"] = { fg = c.special },
|
|
["@string.special.symbol"] = { link = "@string.special" },
|
|
["@string.special.url"] = { fg = c.special, underline = true },
|
|
["@string.special.path"] = { link = "@string.special" },
|
|
|
|
["@character"] = { link = "String" },
|
|
["@character.special"] = { link = "@string.special" },
|
|
|
|
["@number"] = { link = "Number" },
|
|
["@number.float"] = { link = "@number" },
|
|
["@boolean"] = { link = "Boolean" },
|
|
|
|
["@type"] = { link = "Type" },
|
|
["@type.builtin"] = { link = "@type" },
|
|
["@type.definition"] = { link = "@type" },
|
|
["@type.qualifier"] = { link = "@type" },
|
|
|
|
["@attribute"] = { fg = c.type },
|
|
["@attribute.builtin"] = { fg = c.type, italic = true },
|
|
|
|
["@function"] = { link = "Function" },
|
|
["@function.builtin"] = { link = "@function" },
|
|
["@function.call"] = { link = "@function" },
|
|
["@function.macro"] = { link = "@function" },
|
|
["@function.method"] = { link = "@function" },
|
|
["@function.method.call"] = { link = "@function" },
|
|
|
|
["@constructor"] = { link = "Normal" },
|
|
["@class"] = { link = "Normal" },
|
|
|
|
["@operator"] = { link = "Operator" },
|
|
|
|
["@keyword"] = { link = "Keyword" },
|
|
["@keyword.coroutine"] = { fg = c.special },
|
|
["@keyword.function"] = { link = "@keyword" },
|
|
["@keyword.operator"] = { link = "@operator" },
|
|
["@keyword.import"] = { link = "@keyword" },
|
|
["@keyword.type"] = { link = "@keyword" },
|
|
["@keyword.modifier"] = { link = "@keyword" },
|
|
["@keyword.repeat"] = { link = "@keyword" },
|
|
["@keyword.return"] = { link = "@keyword" },
|
|
["@keyword.debug"] = { fg = c.error },
|
|
["@keyword.exception"] = { fg = c.error },
|
|
["@keyword.conditional"] = { link = "Conditional" },
|
|
["@keyword.conditional.ternary"] = { link = "Conditional" },
|
|
["@keyword.directive"] = { link = "PreProc" },
|
|
["@keyword.directive.define"] = { link = "@keyword.directive" },
|
|
|
|
["@punctuation.bracket"] = { link = "Operator" },
|
|
["@punctuation.delimiter"] = { link = "Operator" },
|
|
["@punctuation.special"] = { link = "Operator" },
|
|
|
|
["@comment"] = { link = "Comment" },
|
|
["@comment.documentation"] = { link = "@comment" },
|
|
["@comment.error"] = { fg = c.error },
|
|
["@comment.warning"] = { fg = c.warning },
|
|
["@comment.todo"] = { fg = c.info },
|
|
["@comment.note"] = { fg = c.hint },
|
|
|
|
["@markup.strong"] = { fg = c.fg_bright, bold = true },
|
|
["@markup.italic"] = { fg = c.fg_bright, italic = true },
|
|
["@markup.strikethrough"] = { fg = c.fg_dim, strikethrough = true },
|
|
["@markup.underline"] = { underline = true },
|
|
["@markup.heading"] = { fg = c.red, bold = true },
|
|
["@markup.heading.1"] = { fg = c.red, bold = true },
|
|
["@markup.heading.2"] = { fg = c.orange, bold = true },
|
|
["@markup.heading.3"] = { fg = c.yellow, bold = true },
|
|
["@markup.heading.4"] = { fg = c.green, bold = true },
|
|
["@markup.heading.5"] = { fg = c.cyan, bold = true },
|
|
["@markup.heading.6"] = { fg = c.blue, bold = true },
|
|
["@markup.quote"] = { fg = c.fg_dim, italic = true },
|
|
["@markup.math"] = { fg = c.constant },
|
|
["@markup.environment"] = { fg = c.keyword },
|
|
["@markup.link"] = { fg = c.string, underline = true },
|
|
["@markup.link.label"] = { fg = c.string },
|
|
["@markup.link.url"] = { fg = c.string, underline = true },
|
|
["@markup.raw"] = { fg = c.rose },
|
|
["@markup.raw.block"] = { fg = c.fg },
|
|
["@markup.list"] = { fg = c.operator },
|
|
["@markup.list.checked"] = { fg = c.ok },
|
|
["@markup.list.unchecked"] = { fg = c.fg_dim },
|
|
|
|
["@tag"] = { link = "Tag" },
|
|
["@tag.builtin"] = { link = "Tag", italic = true },
|
|
["@tag.attribute"] = { link = "@type" },
|
|
["@tag.delimiter"] = { fg = c.operator },
|
|
|
|
["@diff.plus"] = { fg = c.git_add },
|
|
["@diff.minus"] = { fg = c.git_delete },
|
|
["@diff.delta"] = { fg = c.git_change },
|
|
}
|
|
end
|
|
|
|
return M
|