Skip to content

Commit

Permalink
add ts highlights for markdown headings 1-5
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmckendry committed Jan 8, 2024
1 parent fe3638a commit 8f558c2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lua/cyberdream/theme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ function M.setup()
markdownCode = { fg = t.cyan },
markdownCodeBlock = { fg = t.cyan },
markdownH1 = { fg = t.orange, bold = true },
markdownH2 = { fg = t.orange, bold = true },
markdownH2 = { fg = t.cyan, bold = true },
markdownH3 = { fg = t.blue, bold = true },
markdownH4 = { fg = t.purple, bold = true },
markdownH5 = { fg = t.magenta, bold = true },
markdownLinkText = { fg = t.blue, underline = true },

LspReferenceText = { bg = t.bgHighlight },
Expand Down
18 changes: 17 additions & 1 deletion lua/cyberdream/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,23 @@ M.defaults = {
},
["@text.title"] = {
default = true,
link = "Title",
link = "markdownH1",
},
["@text.title.2"] = {
default = true,
link = "markdownH2",
},
["@text.title.3"] = {
default = true,
link = "markdownH3",
},
["@text.title.4"] = {
default = true,
link = "markdownH4",
},
["@text.title.5"] = {
default = true,
link = "markdownH5",
},
["@text.underline"] = {
underline = true,
Expand Down

0 comments on commit 8f558c2

Please sign in to comment.