Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redefine Treesitter capture groups #323

Merged
merged 11 commits into from
May 8, 2024
8 changes: 4 additions & 4 deletions lua/github-theme/group/modules/cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ function M.get(spec, config, opts)
CmpItemKindClass = { link = 'Type' },
CmpItemKindStruct = { link = 'Type' },

CmpItemKindModule = { link = has_ts and '@namespace' or 'Identifier' },
CmpItemKindModule = { link = has_ts and '@module' or 'Identifier' },

CmpItemKindProperty = { link = has_ts and '@property' or 'Identifier' },
CmpItemKindField = { link = has_ts and '@field' or 'Identifier' },
CmpItemKindTypeParameter = { link = has_ts and '@field' or 'Identifier' },
CmpItemKindEnumMember = { link = has_ts and '@field' or 'Identifier' },
CmpItemKindField = { link = has_ts and '@variable.member' or 'Identifier' },
CmpItemKindTypeParameter = { link = has_ts and '@variable.member' or 'Identifier' },
CmpItemKindEnumMember = { link = has_ts and '@variable.member' or 'Identifier' },
CmpItemKindOperator = { link = 'Operator' },
CmpItemKindSnippet = { fg = spec.fg2 },
}
Expand Down
2 changes: 1 addition & 1 deletion lua/github-theme/group/modules/lsp_semantic_tokens.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function M.get(spec, config, opts)
['@lsp.type.keyword'] = { link = '@keyword' },
['@lsp.type.interface'] = { link = '@interface' },
['@lsp.type.namespace'] = { link = '@namespace' },
['@lsp.type.parameter'] = { link = '@parameter' },
['@lsp.type.parameter'] = { link = '@variable.parameter' },
['@lsp.type.class'] = { link = '@function' },
['@lsp.type.property'] = {}, -- use treesitter styles for regular properties
['@lsp.type.variable'] = {}, -- use treesitter styles for regular variables
Expand Down
Loading
Loading