Skip to content

Commit f65074b

Browse files
A-Lamiamehalter
authored andcommitted
fix(treesitter): updated highlight groups (#125)
1 parent 8b316aa commit f65074b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lua/astrotheme/groups/treesitter.lua

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ local function callback(opts)
1010
["@variable.parameter"] = {
1111
fg = opts.simple_syntax_colors and C.syntax.text or C.syntax.orange,
1212
},
13+
["@variable.parameter.builtin"] = { link = "@variable.parameter" },
1314
["@variable.member"] = { link = "@property" },
1415

1516
["@constant"] = { link = "Constant" },
@@ -41,9 +42,9 @@ local function callback(opts)
4142
["@type"] = { link = "Type" },
4243
["@type.builtin"] = { fg = C.syntax.yellow },
4344
["@type.definition"] = { link = "@type" },
44-
["@type.qualifier"] = { link = "@type" },
4545

4646
["@attribute"] = { fg = C.syntax.yellow },
47+
["@attribute.builtin"] = { link = "@attribute" },
4748
["@property"] = { fg = opts.simple_syntax_colors and C.syntax.text or C.syntax.red },
4849

4950
-- function
@@ -64,7 +65,8 @@ local function callback(opts)
6465
["@keyword.function"] = { link = "Keyword" },
6566
["@keyword.operator"] = { link = "Keyword" },
6667
["@keyword.import"] = { link = "Include" },
67-
["@keyword.storage"] = { link = "StorageClass" },
68+
["@keyword.type"] = { link = "Typedef" },
69+
["@keyword.modifier"] = { link = "Structure" },
6870
["@keyword.repeat"] = { link = "Repeat" },
6971
["@keyword.return"] = { link = "Keyword" },
7072
["@keyword.debug"] = { link = "Debug" },
@@ -241,6 +243,7 @@ local function callback(opts)
241243
["@method.call"] = { link = "@function.method" },
242244

243245
["@keyword.export"] = { link = "@keyword" },
246+
["@keyword.storage"] = { link = "StorageClass" },
244247
["@storageclass"] = { link = "@keyword.storageclass" },
245248
["@conditional"] = { link = "@keyword.conditional" },
246249
["@conditional.ternary"] = { link = "@keyword.conditional.ternary" },
@@ -253,6 +256,8 @@ local function callback(opts)
253256
["@preproc"] = { link = "@keyword.directive" },
254257
["@define"] = { link = "@keyword.directive.define" },
255258

259+
["@type.qualifier"] = { link = "@type" },
260+
256261
-- semantic tokens
257262
["@annotation"] = { fg = C.syntax.yellow },
258263
["@class"] = { fg = C.syntax.blue },

0 commit comments

Comments
 (0)