summaryrefslogtreecommitdiff
path: root/lua/no-clown-fiesta/highlight-group/markdown.lua
blob: 28ece3b177f4b4a66e110cbd1b9997101d07350b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
local M = {}

function M.highlight(palette)
  return {
    markdownBlockquote = { fg = palette.accent },
    markdownBold = { fg = palette.yellow, style = "bold" },
    markdownCode = { fg = palette.green },
    markdownCodeBlock = { fg = palette.green },
    markdownCodeDelimiter = { fg = palette.green },
    markdownH1 = { fg = palette.blue },
    markdownH2 = { fg = palette.blue },
    markdownH3 = { fg = palette.blue },
    markdownH4 = { fg = palette.blue },
    markdownH5 = { fg = palette.blue },
    markdownH6 = { fg = palette.blue },
    markdownHeadingDelimiter = { fg = palette.red },
    markdownHeadingRule = { fg = palette.accent },
    markdownId = { fg = palette.purple },
    markdownIdDeclaration = { fg = palette.blue },
    markdownIdDelimiter = { fg = palette.light_gray },
    markdownLinkDelimiter = { fg = palette.light_gray },
    markdownItalic = { style = "italic" },
    markdownLinkText = { fg = palette.blue },
    markdownListMarker = { fg = palette.red },
    markdownOrderedListMarker = { fg = palette.red },
    markdownRule = { fg = palette.accent },
    markdownUrl = { fg = palette.cyan, style = "underline" },
  }
end

return M