From bef32f674ca7f0d2c55e67bc300df765dbeb55e5 Mon Sep 17 00:00:00 2001 From: Abdulkaiz Khatri <24286590+ful1e5@users.noreply.github.com> Date: Sun, 12 May 2024 16:50:54 +0530 Subject: [PATCH] fix(treesitter): TSX Tag highlights added --- lua/github-theme/group/modules/treesitter.lua | 3 +++ lua/github-theme/group/syntax.lua | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/github-theme/group/modules/treesitter.lua b/lua/github-theme/group/modules/treesitter.lua index 75253e66..416f4a18 100644 --- a/lua/github-theme/group/modules/treesitter.lua +++ b/lua/github-theme/group/modules/treesitter.lua @@ -317,6 +317,9 @@ If you want to stay on nvim 0.7, disable the module, or track on 'v0.0.x' branch -- ['@type.typescript'] = { link = '@function' }, -- ['@variable.builtin.typescript'] = { link = '@constant' }, -- ['@variable.typescript'] = { link = '@constant' }, + + -- TSX + ['@tag.builtin.tsx'] = { link = '@tag' }, -- VimDoc (vim help files/docs) ['@variable.parameter.vimdoc'] = { fg = pl.syntax.variable }, diff --git a/lua/github-theme/group/syntax.lua b/lua/github-theme/group/syntax.lua index 161a6908..a60b5579 100644 --- a/lua/github-theme/group/syntax.lua +++ b/lua/github-theme/group/syntax.lua @@ -67,7 +67,7 @@ function M.get(spec, config) -- Special = { fg = syn.ident }, -- (preferred) any special symbol -- SpecialChar = { link = 'Special' }, -- special character in a constant -- Tag = { link = 'Special' }, -- you can use CTRL-] on this - -- Delimiter = { link = 'Special' }, -- character that needs attention + Delimiter = { link = 'Special' }, -- character that needs attention -- SpecialComment = { link = 'Special' }, -- special things inside a comment -- Debug = { link = 'Special' }, -- debugging statements