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

feat(blink-cmp): add integration #777

Merged
merged 6 commits into from
Oct 26, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,20 @@ beacon = false
</tr>
<!-- beacon.nvim -->

<!-- blink.cmp -->
</tr>
<tr>
<td> <a href="https://github.com/Saghen/blink.cmp">blink.cmp</a> </td>
<td>

```lua
blink_cmp = true
giuxtaposition marked this conversation as resolved.
Show resolved Hide resolved
```

</td>
</tr>
<!-- blink.cmp -->

<!-- bufferline.nvim -->
</tr>
<tr>
Expand Down
41 changes: 41 additions & 0 deletions lua/catppuccin/groups/integrations/blink_cmp.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
local M = {}

function M.get()
return {
BlinkCmpMenu = { bg = C.base },
vollowx marked this conversation as resolved.
Show resolved Hide resolved
BlinkCmpMenuBorder = { fg = C.overlay0, bg = C.base },
BlinkCmpMenuSelection = { bg = C.surface2 },
vollowx marked this conversation as resolved.
Show resolved Hide resolved
BlinkCmpLabel = { fg = C.text },
BlinkCmpLabelDeprecated = { fg = C.overlay0, style = { "strikethrough" } },
BlinkCmpDocBorder = { fg = C.overlay0, bg = C.base },
BlinkCmpDoc = { bg = C.base },

BlinkCmpKindText = { fg = C.teal },
BlinkCmpKindMethod = { fg = C.blue },
BlinkCmpKindFunction = { fg = C.blue },
BlinkCmpKindConstructor = { fg = C.blue },
BlinkCmpKindField = { fg = C.green },
BlinkCmpKindVariable = { fg = C.flamingo },
BlinkCmpKindClass = { fg = C.yellow },
BlinkCmpKindInterface = { fg = C.yellow },
BlinkCmpKindModule = { fg = C.blue },
BlinkCmpKindProperty = { fg = C.green },
BlinkCmpKindUnit = { fg = C.green },
BlinkCmpKindValue = { fg = C.peach },
BlinkCmpKindEnum = { fg = C.green },
BlinkCmpKindKeyword = { fg = C.red },
BlinkCmpKindSnippet = { fg = C.mauve },
BlinkCmpKindColor = { fg = C.red },
BlinkCmpKindFile = { fg = C.blue },
BlinkCmpKindReference = { fg = C.red },
BlinkCmpKindFolder = { fg = C.blue },
BlinkCmpKindEnumMember = { fg = C.red },
BlinkCmpKindConstant = { fg = C.peach },
BlinkCmpKindStruct = { fg = C.blue },
BlinkCmpKindEvent = { fg = C.blue },
BlinkCmpKindOperator = { fg = C.blue },
BlinkCmpKindTypeParameter = { fg = C.blue },
Copy link
Contributor

@sgoudham sgoudham Oct 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to double check that we are aligned as can be with the style guide for these highlights.

For example, Enum members/variants should be teal, Operators should be sky, etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I didn't know about that doc, maybe it should be linked to this repo README in some way?
I used the same colors as those used in the cmp integration, will change them based on the style guide then

}
end

return M
1 change: 1 addition & 0 deletions lua/catppuccin/types.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
---```
---@field barbecue CtpIntegrationBarbecue | boolean?
---@field beacon boolean?
---@field blink_cmp boolean?
---@field colorful_winsep CtpIntegrationColorfulWinsep | boolean?
---@field cmp boolean?
-- `coc.nvim` links to `native_lsp` highlight groups, so you can use
Expand Down