Skip to content

Commit

Permalink
Merge pull request #139 from ful1e5/main
Browse files Browse the repository at this point in the history
enhance: highlight all lspkind list in `nvim-cmp`
  • Loading branch information
ful1e5 authored Dec 3, 2021
2 parents 6549f9e + d94c460 commit 87106dd
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- refactor: pass common config in `extra` module
- enhance: `StatusLine` foreground & `StatusLineNC` background colors are customizable ( related to #11 )
- feat: vscode like lspkind highlighting inside `nvim-cmp` #137
- enhance: highlight all lspkind list in `nvim-cmp` #137

### Fixes

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ require("github-theme").setup({
```

<p align="center">
<img src="https://imgur.com/SuPtKdk.png" alt="github_minimal" />
<img src="https://imgur.com/TyaLR4n.png" alt="github_minimal" />
</p>

### Telescope
Expand Down
43 changes: 34 additions & 9 deletions lua/github-theme/theme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -484,18 +484,43 @@ function M.setup(config)
-- Cmp
CmpDocumentation = {links = "NormalFloat"},
CmpDocumentationBorder = {links = "FloatBorder"},

CmpItemAbbrDeprecated = {fg = c.syntax.comment, style = "strikethrough"},
CmpItemAbbrMatch = {fg = c.blue},
CmpItemAbbrMatchFuzzy = {link = "CmpItemAbbrMatch"},
CmpItemKindVariable = {fg = c.syntax.variable},
CmpItemKindInterface = {link = "CmpItemKindVariable"},
CmpItemKindText = {link = "CmpItemKindVariable"},
CmpItemKindFunction = {fg = c.syntax.func},
CmpItemKindMethod = {link = "CmpItemKindFunction"},
CmpItemKindKeyword = {fg = c.syntax.keyword},
CmpItemKindProperty = {link = "CmpItemKindKeyword"},
CmpItemKindUnit = {link = "CmpItemKindKeyword"},

-- Cmp Item Kind
CmpItemKindColorDefault = {fg = c.bright_red},
CmpItemKindPropertyDefault = {fg = c.syntax.func},
CmpItemKindSnippetDefault = {fg = c.bright_yellow},

CmpItemKindVariableDefault = {fg = c.syntax.variable},
CmpItemKindClassDefault = {link = "CmpItemKindVariableDefault"},
CmpItemKindEnumDefault = {link = "CmpItemKindVariableDefault"},
CmpItemKindInterfaceDefault = {link = "CmpItemKindVariableDefault"},
CmpItemKindTextDefault = {link = "CmpItemKindVariableDefault"},

CmpItemKindKeywordDefault = {fg = c.syntax.keyword},
CmpItemKindFieldDefault = {link = "CmpItemKindKeywordDefault"},
CmpItemKindUnitDefault = {link = "CmpItemKindKeywordDefault"},
CmpItemKindValueDefault = {link = "CmpItemKindKeywordDefault"},

CmpItemKindFileDefault = {fg = c.orange},
CmpItemKindFolderDefault = {link = "CmpItemKindFileDefault"},

CmpItemKindFunctionDefault = {fg = c.syntax.func},
CmpItemKindConstructorDefault = {link = "CmpItemKindFunctionDefault"},
CmpItemKindEventDefault = {link = "CmpItemKindFunctionDefault"},
CmpItemKindMethodDefault = {link = "CmpItemKindFunctionDefault"},

CmpItemKindOperatorDefault = {fg = c.syntax.operator},
CmpItemKindEnumMemberDefault = {link = "CmpItemKindOperatorDefault"},
CmpItemKindReferenceDefault = {link = "CmpItemKindOperatorDefault"},
CmpItemKindTypeParameter = {link = "CmpItemKindOperatorDefault"},

CmpItemKindConstantDefault = {fg = c.syntax.constant},
CmpItemKindModuleDefault = {link = "CmpItemKindConstantDefault"},
CmpItemKindStructDefault = {link = "CmpItemKindConstantDefault"},
CmpItemKindTypeParameterDefault = {link = "CmpItemKindConstantDefault"},

-- nvim-notify
NotifyERRORTitle = {fg = util.darken(c.error, 0.9)},
Expand Down

0 comments on commit 87106dd

Please sign in to comment.