Skip to content

Commit

Permalink
feat(blink-cmp): add integration (#777)
Browse files Browse the repository at this point in the history
* feat(blink-cmp): add highlights

* feat(blink-cmp): update README.md

* feat(blink-cmp): use surface0 for selected suggestion for better contrast

* feat(blink-cmp): support transparent setup

* feat(blink-cmp): update kind highlights following style guide

* fix(blink-cmp): set correct default in README
  • Loading branch information
giuxtaposition authored Oct 26, 2024
1 parent 08efbef commit abceb64
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
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 = false
```

</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 = { fg = C.text, bg = O.transparent_background and C.none or C.base },
BlinkCmpMenuBorder = { fg = C.overlay0, bg = O.transparent_background and C.none or C.base },
BlinkCmpMenuSelection = { bg = C.surface0 },
BlinkCmpLabel = { fg = C.text },
BlinkCmpLabelDeprecated = { fg = C.overlay0, style = { "strikethrough" } },
BlinkCmpDocBorder = { fg = C.overlay0, bg = O.transparent_background and C.none or C.base },
BlinkCmpDoc = { fg = C.text, bg = O.transparent_background and C.none or C.base },

BlinkCmpKindText = { fg = C.green },
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.blue },
BlinkCmpKindUnit = { fg = C.green },
BlinkCmpKindValue = { fg = C.peach },
BlinkCmpKindEnum = { fg = C.yellow },
BlinkCmpKindKeyword = { fg = C.mauve },
BlinkCmpKindSnippet = { fg = C.flamingo },
BlinkCmpKindColor = { fg = C.red },
BlinkCmpKindFile = { fg = C.blue },
BlinkCmpKindReference = { fg = C.red },
BlinkCmpKindFolder = { fg = C.blue },
BlinkCmpKindEnumMember = { fg = C.teal },
BlinkCmpKindConstant = { fg = C.peach },
BlinkCmpKindStruct = { fg = C.blue },
BlinkCmpKindEvent = { fg = C.blue },
BlinkCmpKindOperator = { fg = C.sky },
BlinkCmpKindTypeParameter = { fg = C.maroon },
}
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

0 comments on commit abceb64

Please sign in to comment.