Skip to content

Commit

Permalink
fix(cmp): improve highlights
Browse files Browse the repository at this point in the history
- Make keywords `Keyword` color
- Differentiate constructors from functions
  • Loading branch information
tmillr committed Aug 11, 2024
1 parent 742c701 commit 9ecfeb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic

- Minimized colorscheme files in `colors/*.vim` and refactored-out duplicated logic
- Removed the long-since deprecated `github_dimmed` theme (use `github_dark_dimmed` instead)
- Improved `cmp` highlights (completion menu)

### Issues Fix

Expand Down
4 changes: 2 additions & 2 deletions lua/github-theme/group/modules/cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function M.get(spec, config, _opts)
CmpItemKindDefault = { fg = spec.fg2, },
CmpItemMenu = { link = 'Comment' },

CmpItemKindKeyword = { link = 'Identifier' },
CmpItemKindKeyword = { link = 'Keyword' },

CmpItemKindVariable = { link = has_ts and '@variable' or 'Identifier' },
CmpItemKindConstant = { link = has_ts and '@constant' or 'Constant' },
Expand All @@ -33,7 +33,7 @@ function M.get(spec, config, _opts)

CmpItemKindFunction = { link = 'Function' },
CmpItemKindMethod = { link = 'Function' },
CmpItemKindConstructor = { link = 'Function' },
CmpItemKindConstructor = { link = has_ts and '@constructor' or 'Type' },

CmpItemKindInterface = { link = 'Constant' },
CmpItemKindEvent = { link = 'Constant' },
Expand Down

0 comments on commit 9ecfeb6

Please sign in to comment.