Skip to content

Commit

Permalink
Use rainbow highlighting for Markdown headers
Browse files Browse the repository at this point in the history
  • Loading branch information
neanias committed Feb 21, 2024
1 parent 63ea67d commit fd837a1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lua/everforest/highlights.lua
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,18 @@ highlights.generate_syntax = function(palette, options)
["@markup.environment"] = { link = "TSEnvironment" },
["@markup.environment.name"] = { link = "TSEnvironmentName" },
["@markup.heading"] = { link = "TSTitle" },
["@markup.heading.1.markdown"] = { link = "markdownH1" },
["@markup.heading.2.markdown"] = { link = "markdownH2" },
["@markup.heading.3.markdown"] = { link = "markdownH3" },
["@markup.heading.4.markdown"] = { link = "markdownH4" },
["@markup.heading.5.markdown"] = { link = "markdownH5" },
["@markup.heading.6.markdown"] = { link = "markdownH6" },
["@markup.heading.1.marker.markdown"] = { link = "@conceal" },
["@markup.heading.2.marker.markdown"] = { link = "@conceal" },
["@markup.heading.3.marker.markdown"] = { link = "@conceal" },
["@markup.heading.4.marker.markdown"] = { link = "@conceal" },
["@markup.heading.5.marker.markdown"] = { link = "@conceal" },
["@markup.heading.6.marker.markdown"] = { link = "@conceal" },
["@markup.link"] = { link = "TSTextReference" },
["@markup.link.label"] = { link = "TSStringSpecial" },
["@markup.link.url"] = { link = "TSURI" },
Expand Down

0 comments on commit fd837a1

Please sign in to comment.