Skip to content

Commit d832925

Browse files
authored
Merge pull request #323 from projekt0n/dev
Redefine Treesitter capture groups
2 parents 66dcec1 + 8d8ab7c commit d832925

File tree

6 files changed

+170
-122
lines changed

6 files changed

+170
-122
lines changed

lua/github-theme/group/modules/cmp.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ function M.get(spec, config, opts)
3838
CmpItemKindClass = { link = 'Type' },
3939
CmpItemKindStruct = { link = 'Type' },
4040

41-
CmpItemKindModule = { link = has_ts and '@namespace' or 'Identifier' },
41+
CmpItemKindModule = { link = has_ts and '@module' or 'Identifier' },
4242

4343
CmpItemKindProperty = { link = has_ts and '@property' or 'Identifier' },
44-
CmpItemKindField = { link = has_ts and '@field' or 'Identifier' },
45-
CmpItemKindTypeParameter = { link = has_ts and '@field' or 'Identifier' },
46-
CmpItemKindEnumMember = { link = has_ts and '@field' or 'Identifier' },
44+
CmpItemKindField = { link = has_ts and '@variable.member' or 'Identifier' },
45+
CmpItemKindTypeParameter = { link = has_ts and '@variable.member' or 'Identifier' },
46+
CmpItemKindEnumMember = { link = has_ts and '@variable.member' or 'Identifier' },
4747
CmpItemKindOperator = { link = 'Operator' },
4848
CmpItemKindSnippet = { fg = spec.fg2 },
4949
}

lua/github-theme/group/modules/lsp_semantic_tokens.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function M.get(spec, config, opts)
99
['@lsp.type.keyword'] = { link = '@keyword' },
1010
['@lsp.type.interface'] = { link = '@interface' },
1111
['@lsp.type.namespace'] = { link = '@namespace' },
12-
['@lsp.type.parameter'] = { link = '@parameter' },
12+
['@lsp.type.parameter'] = { link = '@variable.parameter' },
1313
['@lsp.type.class'] = { link = '@function' },
1414
['@lsp.type.property'] = {}, -- use treesitter styles for regular properties
1515
['@lsp.type.variable'] = {}, -- use treesitter styles for regular variables

0 commit comments

Comments
 (0)