Skip to content

Commit 3acf4fa

Browse files
committed
fix: add missing TS fallbacks for md headings
not entirely sure how this came about, was working fine in fe3638a. This should support both permutations in TS.
1 parent 270bf5a commit 3acf4fa

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

lua/cyberdream/treesitter.lua

+20
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,26 @@ M.defaults = {
356356
default = true,
357357
link = "markdownH5",
358358
},
359+
["@markup.heading.1"] = {
360+
default = true,
361+
link = "markdownH1",
362+
},
363+
["@markup.heading.2"] = {
364+
default = true,
365+
link = "markdownH2",
366+
},
367+
["@markup.heading.3"] = {
368+
default = true,
369+
link = "markdownH3",
370+
},
371+
["@markup.heading.4"] = {
372+
default = true,
373+
link = "markdownH4",
374+
},
375+
["@markup.heading.5"] = {
376+
default = true,
377+
link = "markdownH5",
378+
},
359379
["@text.underline"] = {
360380
underline = true,
361381
},

0 commit comments

Comments
 (0)