Change some TreeSitter highlights with markdown in mind
authorOllie Stone <ollieandy.stone@gmail.com>
Wed, 18 Jan 2023 17:21:42 +0000 (17:21 +0000)
committerOllie Stone <ollieandy.stone@gmail.com>
Wed, 18 Jan 2023 17:57:10 +0000 (17:57 +0000)
Specifically, make titles bold, make special punctuation (e.g. bullet
points) cyan, and add the text.reference highlight group and make it
orange and bold.

lua/dracula/groups.lua

index 5128019b92b05ebd377c270a1c6f53d8feb67d69..a02ced37eab91ee25ed5cb96adc32b09fd3cd8f3 100644 (file)
@@ -129,7 +129,7 @@ local function setup(configs)
       ['@error'] = { fg = colors.bright_red, },
       ['@punctuation.delimiter'] = { fg = colors.fg, },
       ['@punctuation.bracket'] = { fg = colors.fg, },
-      ['@punctuation.special'] = { fg = colors.fg, },
+      ['@punctuation.special'] = { fg = colors.cyan, },
 
       ['@constant'] = { fg = colors.purple, },
       ['@constant.builtin'] = { fg = colors.purple, },
@@ -179,9 +179,10 @@ local function setup(configs)
       ['@text.strong'] = { fg = colors.orange, bold = true, }, -- bold
       ['@text.emphasis'] = { fg = colors.yellow, italic = true, }, -- italic
       ['@text.underline'] = { fg = colors.orange, },
-      ['@text.title'] = { fg = colors.pink, }, -- title
+      ['@text.title'] = { fg = colors.pink, bold = true, }, -- title
       ['@text.literal'] = { fg = colors.yellow, }, -- inline code
       ['@text.uri'] = { fg = colors.yellow, italic = true, }, -- urls
+      ['@text.reference'] = { fg = colors.orange, bold = true, },
 
       ['@tag'] = { fg = colors.cyan, },
       ['@tag.attribute'] = { fg = colors.green, },