Skip to content

Commit 9ecfeb6

Browse files
committed
fix(cmp): improve highlights
- Make keywords `Keyword` color - Differentiate constructors from functions
1 parent 742c701 commit 9ecfeb6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic
1010

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

1415
### Issues Fix
1516

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function M.get(spec, config, _opts)
2424
CmpItemKindDefault = { fg = spec.fg2, },
2525
CmpItemMenu = { link = 'Comment' },
2626

27-
CmpItemKindKeyword = { link = 'Identifier' },
27+
CmpItemKindKeyword = { link = 'Keyword' },
2828

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

3434
CmpItemKindFunction = { link = 'Function' },
3535
CmpItemKindMethod = { link = 'Function' },
36-
CmpItemKindConstructor = { link = 'Function' },
36+
CmpItemKindConstructor = { link = has_ts and '@constructor' or 'Type' },
3737

3838
CmpItemKindInterface = { link = 'Constant' },
3939
CmpItemKindEvent = { link = 'Constant' },

0 commit comments

Comments
 (0)