feat(markdown): added different colors for each headline (#423)

* feat(markdown)

* change: title1 to blue instead of red.

Markdown notifications will use the color of title1, so we don't want red. Blue is the one we've been using it, so let's keep it.

Also, the title don't deserve so much visual weight, as users will be focusing their attention on the document content instead.
This commit is contained in:
Zeioth 2023-09-25 10:45:28 +02:00 committed by GitHub
parent b0ff1f6fac
commit ad7e8fff8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -308,6 +308,14 @@ function M.setup()
-- NOTE: maybe add these with distinct highlights? -- NOTE: maybe add these with distinct highlights?
-- ["@lsp.typemod.variable.globalScope"] (global variables) -- ["@lsp.typemod.variable.globalScope"] (global variables)
-- Markdown
["@text.title.1.markdown"] = { fg = c.blue, bold = true },
["@text.title.2.markdown"] = { fg = c.yellow, bold = true },
["@text.title.3.markdown"] = { fg = c.green, bold = true},
["@text.title.4.markdown"] = { fg = c.teal, bold = true},
["@text.title.5.markdown"] = { fg = c.magenta, bold = true},
["@text.title.6.markdown"] = { fg = c.purple, bold = true},
-- ts-rainbow -- ts-rainbow
rainbowcol1 = { fg = c.red }, rainbowcol1 = { fg = c.red },
rainbowcol2 = { fg = c.yellow }, rainbowcol2 = { fg = c.yellow },