Files
Astrobox/lua/astrobox/highlights/modules/markup.lua

69 lines
3.7 KiB
Lua

return function(palette)
return {
["@markup"] = { fg = palette.fg },
["@markup.checked"] = { fg = palette.green },
["@markup.danger"] = { fg = palette.red },
["@markup.diff.add"] = { link = "DiffAdded" },
["@markup.diff.delete"] = { link = "DiffDelete" },
["@markup.emphasis"] = { fg = palette.fg, italic = true },
["@markup.environment"] = { fg = palette.yellow },
["@markup.environment.name"] = { fg = palette.orange },
["@markup.heading"] = { fg = palette.green, bold = true },
["@markup.heading.1.markdown"] = { fg = palette.blue, bold = true },
["@markup.heading.2.markdown"] = { fg = palette.aqua, bold = true },
["@markup.heading.3.markdown"] = { fg = palette.purple, bold = true },
["@markup.heading.4.markdown"] = { fg = palette.yellow, bold = true },
["@markup.link"] = { fg = palette.aqua, bold = true },
["@markup.link.special"] = { link = "Special" },
["@markup.link.url"] = { link = "Underlined" },
["@markup.list"] = { link = "Special" },
["@markup.math"] = { fg = palette.aqua },
["@markup.note"] = { fg = palette.aqua },
["@markup.quote"] = { fg = palette.fg, italic = true },
["@markup.raw"] = { fg = palette.fg },
["@markup.strike"] = { fg = palette.fg, strikethrough = true },
["@markup.strong"] = { fg = palette.fg, bold = true },
["@markup.todo"] = { link = "Todo" },
["@markup.todo.checked"] = { link = "@markup.checked" },
["@markup.todo.danger"] = { link = "@markup.danger" },
["@markup.todo.note"] = { link = "@markup.note" },
["@markup.todo.unchecked"] = { link = "@markup.unchecked" },
["@markup.todo.warning"] = { link = "@markup.warning" },
["@markup.unchecked"] = { fg = palette.blue },
["@markup.underline"] = { link = "Underline" },
["@markup.warning"] = { fg = palette.yellow },
-- Deprecated
["@text"] = { fg = palette.fg },
["@text.checked"] = { fg = palette.green },
["@text.danger"] = { fg = palette.red },
["@text.diff.add"] = { link = "DiffAdded" },
["@text.diff.delete"] = { link = "DiffDelete" },
["@text.emphasis"] = { fg = palette.fg, italic = true },
["@text.environment"] = { fg = palette.yellow },
["@text.environment.name"] = { fg = palette.orange },
["@text.literal"] = { fg = palette.fg },
["@text.math"] = { fg = palette.aqua },
["@text.note"] = { fg = palette.aqua },
["@text.quote"] = { fg = palette.fg, italic = true },
["@text.reference"] = { fg = palette.aqua, bold = true },
["@text.strike"] = { fg = palette.fg, strikethrough = true },
["@text.strong"] = { fg = palette.fg, bold = true },
["@text.title"] = { fg = palette.green, bold = true },
["@text.title.1.markdown"] = { fg = palette.blue, bold = true },
["@text.title.2.markdown"] = { fg = palette.aqua, bold = true },
["@text.title.3.markdown"] = { fg = palette.purple, bold = true },
["@text.title.4.markdown"] = { fg = palette.yellow, bold = true },
["@text.todo"] = { link = "Todo" },
["@text.todo.checked"] = { link = "@text.checked" },
["@text.todo.danger"] = { link = "@text.danger" },
["@text.todo.note"] = { link = "@text.note" },
["@text.todo.unchecked"] = { link = "@text.unchecked" },
["@text.todo.warning"] = { link = "@text.warning" },
["@text.unchecked"] = { fg = palette.blue },
["@text.underline"] = { link = "Underline" },
["@text.uri"] = { link = "Underlined" },
["@text.warning"] = { fg = palette.yellow },
}
end