From 22b34eb9f93430bc010dee1523743b62cd2700fc Mon Sep 17 00:00:00 2001 From: Pocco81 Date: Tue, 14 Dec 2021 18:45:28 -0500 Subject: [PATCH] added support for treesitter markdown parser --- lua/catppuccin/core/integrations/treesitter.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lua/catppuccin/core/integrations/treesitter.lua b/lua/catppuccin/core/integrations/treesitter.lua index 0562957..85217eb 100644 --- a/lua/catppuccin/core/integrations/treesitter.lua +++ b/lua/catppuccin/core/integrations/treesitter.lua @@ -57,7 +57,6 @@ function M.get(cp) TSPunctBracket = { fg = cp.catppuccin11 }, -- For brackets and parenthesis. -- TSString = { }; -- For strings. TSStringRegex = { fg = cp.catppuccin9, style = cnf.styles.strings }, -- For regexes. - TSStringEscape = { fg = cp.catppuccin4, style = cnf.styles.strings }, -- For escape characters within a string. -- TSSymbol = { }; -- For identifiers referring to symbols or atoms. -- TSType = { }; -- For types. TSVariable = { style = cnf.styles.variables }, -- Any variable name that does not have another highlighcp. @@ -65,13 +64,21 @@ function M.get(cp) -- TSTag = { }; -- Tags like html tag names. -- TSTagDelimiter = { }; -- Tag delimiter like `<` `>` `/` -- TSText = { }; -- For strings considecatppuccin5 text in a markup language. - TSTextReference = { fg = cp.catppuccin2 }, -- TSEmphasis = { }; -- For text to be represented with emphasis. -- TSUnderline = { }; -- For text to be represented with an underline. -- TSStrike = { }; -- For strikethrough texcp. -- TSTitle = { }; -- Text that is part of a title. -- TSLiteral = { }; -- Literal texcp. -- TSURI = { }; -- Any URI like a link or email. + + -- Markdown tresitter parser support + TSURI = { fg = cp.catppuccin6 }, -- urls + TSLiteral = { fg = cp.catppuccin0 }, -- like inline code + TSTextReference = { fg = cp.catppuccin2 }, -- references + TSTitle = { fg = cp.catppuccin9, style = "bold" }, -- titles like: # Example + TSEmphasis = { fg = cp.catppuccin5, style = "bold" }, -- bold + TSStrong = { fg = cp.catppuccin4, style = "italic,bold" }, -- italic + TSStringEscape = { fg = cp.catppuccin4, style = cnf.styles.strings }, -- For escape characters within a string. } end