Skip to content

Commit

Permalink
feat(plugins): add blink.cmp support
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Oct 14, 2024
1 parent 4fd678a commit 46e8c5b
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ term.foreground
| [aerial.nvim](https://github.com/stevearc/aerial.nvim) | `aerial` |
| [avante.nvim](https://github.com/yetone/avante.nvim) | `avante` |
| [beacon.nvim](https://github.com/DanilaMihailov/beacon.nvim) | `beacon` |
| [blink.cmp](https://github.com/Saghen/blink.cmp) | `blink-cmp` |
| [bufferline.nvim](https://github.com/akinsho/bufferline.nvim) | `bufferline` |
| [dashboard-nvim](https://github.com/glepnir/dashboard-nvim) | `dashboard-nvim` |
| [flash.nvim](https://github.com/folke/flash.nvim) | `flash` |
Expand Down
35 changes: 35 additions & 0 deletions lua/astrotheme/groups/plugins/blink-cmp.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---@type AstroThemeCallback
local function callback(c)
return {
BlinkCmpLabel = { fg = c.ui.text },
BlinkCmpLabelDeprecated = { fg = c.syntax.red, strikethrough = true },
BlinkCmpLabelMatch = { fg = c.ui.text_match, bold = true },
BlinkCmpKind = { fg = c.syntax.yellow },
BlinkCmpKindClass = "@type",
BlinkCmpKindColor = "@constant",
BlinkCmpKindConstant = "@constant",
BlinkCmpKindConstructor = "@constructor",
BlinkCmpKindEnum = "@type",
BlinkCmpKindEnumMember = "@field",
BlinkCmpKindEvent = "@type",
BlinkCmpKindField = "@field",
BlinkCmpKindFile = "@text.uri",
BlinkCmpKindFolder = "@constant",
BlinkCmpKindFunction = "@function",
BlinkCmpKindInterface = "@type",
BlinkCmpKindKeyword = "@keyword",
BlinkCmpKindMethod = "@method",
BlinkCmpKindModule = "@namespace",
BlinkCmpKindOperator = "@operator",
BlinkCmpKindProperty = "@property",
BlinkCmpKindReference = "@type",
BlinkCmpKindSnippet = "@constant",
BlinkCmpKimdStruct = "@type",
BlinkCmpKindText = "@text",
BlinkCmpKindTypeParameter = "@type",
BlinkCmpKindUnit = "@constant",
BlinkCmpKindValue = "@constant",
BlinkCmpKindVariable = "@variable",
}
end
return callback
1 change: 1 addition & 0 deletions lua/astrotheme/groups/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ return {
["aerial.nvim"] = "aerial",
["avante.nvim"] = "avante",
["beacon.nvim"] = "beacon",
["blink.cmp"] = "blink-cmp",
["bufferline.nvim"] = "bufferline",
["dashboard-nvim"] = "dashboard-nvim",
["flash.nvim"] = "flash",
Expand Down

0 comments on commit 46e8c5b

Please sign in to comment.