Skip to content

Commit

Permalink
Merge pull request #323 from projekt0n/dev
Browse files Browse the repository at this point in the history
Redefine Treesitter capture groups
  • Loading branch information
ful1e5 authored May 8, 2024
2 parents 66dcec1 + 8d8ab7c commit d832925
Show file tree
Hide file tree
Showing 6 changed files with 170 additions and 122 deletions.
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

0 comments on commit d832925

Please sign in to comment.