From d0635ba2b511761615301a28fd7dfdc55f986bf5 Mon Sep 17 00:00:00 2001 From: Julian Pottle Date: Sat, 20 Jan 2024 14:17:06 -0500 Subject: Update to include new TreeSitter capture names Co-authored-by: ObserverOfTime --- lua/gruvbox.lua | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'lua') diff --git a/lua/gruvbox.lua b/lua/gruvbox.lua index 0236b9a..2d1a4ce 100644 --- a/lua/gruvbox.lua +++ b/lua/gruvbox.lua @@ -956,25 +956,39 @@ local function get_groups() ["@punctuation.special"] = { link = "Delimiter" }, ["@string"] = { link = "String" }, ["@string.regex"] = { link = "String" }, + ["@string.regexp"] = { link = "String" }, ["@string.escape"] = { link = "SpecialChar" }, ["@string.special"] = { link = "SpecialChar" }, + ["@string.special.path"] = { link = "Underlined" }, + ["@string.special.symbol"] = { link = "Identifier" }, + ["@string.special.url"] = { link = "Underlined" }, ["@character"] = { link = "Character" }, ["@character.special"] = { link = "SpecialChar" }, ["@boolean"] = { link = "Boolean" }, ["@number"] = { link = "Number" }, + ["@number.float"] = { link = "Float" }, ["@float"] = { link = "Float" }, ["@function"] = { link = "Function" }, ["@function.builtin"] = { link = "Special" }, ["@function.call"] = { link = "Function" }, ["@function.macro"] = { link = "Macro" }, + ["@function.method"] = { link = "Function" }, ["@method"] = { link = "Function" }, ["@method.call"] = { link = "Function" }, ["@constructor"] = { link = "Special" }, ["@parameter"] = { link = "Identifier" }, ["@keyword"] = { link = "Keyword" }, + ["@keyword.conditional"] = { link = "Conditional" }, + ["@keyword.debug"] = { link = "Debug" }, + ["@keyword.directive"] = { link = "PreProc" }, + ["@keyword.directive.define"] = { link = "Define" }, + ["@keyword.exception"] = { link = "Exception" }, ["@keyword.function"] = { link = "Keyword" }, + ["@keyword.import"] = { link = "Include" }, ["@keyword.operator"] = { link = "GruvboxRed" }, + ["@keyword.repeat"] = { link = "Repeat" }, ["@keyword.return"] = { link = "Keyword" }, + ["@keyword.storage"] = { link = "StorageClass" }, ["@conditional"] = { link = "Conditional" }, ["@repeat"] = { link = "Repeat" }, ["@debug"] = { link = "Debug" }, @@ -991,9 +1005,34 @@ local function get_groups() ["@property"] = { link = "Identifier" }, ["@variable"] = { link = "GruvboxFg1" }, ["@variable.builtin"] = { link = "Special" }, + ["@variable.member"] = { link = "Identifier" }, + ["@variable.parameter"] = { link = "Identifier" }, ["@constant"] = { link = "Constant" }, ["@constant.builtin"] = { link = "Special" }, ["@constant.macro"] = { link = "Define" }, + ["@markup"] = { link = "GruvboxFg1" }, + ["@markup.strong"] = { bold = config.bold }, + ["@markup.emphasis"] = { italic = config.italic.emphasis }, + ["@markup.underline"] = { underline = config.underline }, + ["@markup.strike"] = { strikethrough = config.strikethrough }, + ["@markup.heading"] = { link = "Title" }, + ["@markup.raw"] = { link = "String" }, + ["@markup.math"] = { link = "Special" }, + ["@markup.environment"] = { link = "Macro" }, + ["@markup.environment.name"] = { link = "Type" }, + ["@markup.link"] = { link = "Underlined" }, + ["@markup.link.label"] = { link = "SpecialChar" }, + ["@markup.list"] = { link = "Delimiter" }, + ["@markup.list.checked"] = { link = "GruvboxGreen" }, + ["@markup.list.unchecked"] = { link = "GruvboxGray" }, + ["@comment.todo"] = { link = "Todo" }, + ["@comment.note"] = { link = "SpecialComment" }, + ["@comment.warning"] = { link = "WarningMsg" }, + ["@comment.error"] = { link = "ErrorMsg" }, + ["@diff.plus"] = { link = "diffAdded" }, + ["@diff.minus"] = { link = "diffRemoved" }, + ["@diff.delta"] = { link = "diffChanged" }, + ["@module"] = { link = "GruvboxFg1" }, ["@namespace"] = { link = "GruvboxFg1" }, ["@symbol"] = { link = "Identifier" }, ["@text"] = { link = "GruvboxFg1" }, -- cgit v1.2.3