From ef6ba3252662ab2db1772a632146a60acd0f9513 Mon Sep 17 00:00:00 2001 From: Evan Travers Date: Fri, 17 Dec 2021 21:02:12 -0600 Subject: [PATCH] Add Markdown TreeSitter groups --- lua/zenbones/specs/dark.lua | 10 ++++++++++ lua/zenbones/specs/light.lua | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/lua/zenbones/specs/dark.lua b/lua/zenbones/specs/dark.lua index 3b51149..24ab824 100644 --- a/lua/zenbones/specs/dark.lua +++ b/lua/zenbones/specs/dark.lua @@ -253,6 +253,16 @@ local function generate(p, opt) TSWarning { WarningMsg }, TSDanger { Error }, + -- TS: Markdown + markdownTSPunctSpecial { Special }; -- For special punctutation that does not fall in the catagories before. + markdownTSStringEscape { SpecialKey }; -- For escape characters within a string. + markdownTSTextReference { Special, gui = "underline" }; -- Footnotes, text references, citations, etc. + markdownTSEmphasis { Italic }; -- For text to be represented with emphasis. + markdownTSStrong { Bold }; -- Text to be represented in bold. + markdownTSTitle { Statement }; -- Text that is part of a title. + markdownTSLiteral { Delimiter }; -- Literal text. + markdownTSURI { NonText }; -- Any URI like a link or email. + -- Syntax diffAdded { fg = p.leaf }, diffRemoved { fg = p.rose }, diff --git a/lua/zenbones/specs/light.lua b/lua/zenbones/specs/light.lua index ae465e7..4092559 100644 --- a/lua/zenbones/specs/light.lua +++ b/lua/zenbones/specs/light.lua @@ -253,6 +253,16 @@ local function generate(p, opt) TSWarning { WarningMsg }, TSDanger { Error }, + -- TS: Markdown + markdownTSPunctSpecial { Special }; -- For special punctutation that does not fall in the catagories before. + markdownTSStringEscape { SpecialKey }; -- For escape characters within a string. + markdownTSTextReference { Special, gui = "underline" }; -- Footnotes, text references, citations, etc. + markdownTSEmphasis { Italic }; -- For text to be represented with emphasis. + markdownTSStrong { Bold }; -- Text to be represented in bold. + markdownTSTitle { Statement }; -- Text that is part of a title. + markdownTSLiteral { Delimiter }; -- Literal text. + markdownTSURI { NonText }; -- Any URI like a link or email. + -- Syntax diffAdded { fg = p.leaf }, diffRemoved { fg = p.rose },