Skip to content

Commit

Permalink
feat: support blink.cmp (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbprod authored Jan 8, 2025
1 parent d6a3a49 commit 469e3ca
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ and [the official vscode theme](https://github.com/arcticicestudio/nord-visual-s
- [Glance](https://github.com/dnlhc/glance.nvim)
- [Markview](https://github.com/OXY2DEV/markview.nvim)
- [Toggleterm](https://github.com/akinsho/toggleterm.nvim)
- [Blink.cmp](https://github.com/saghen/blink.cmp)

Your preferred plugin is missing ? Open an issue or, even better, open a pull
request 😉.
Expand Down
46 changes: 46 additions & 0 deletions lua/nord/plugins/completion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,52 @@ function cmp.highlights()
CmpItemKindText = { fg = c.snow_storm.origin },

CodeiumSuggestion = { fg = c.polar_night.light },

BlinkCmpMenuBorder = { fg = c.polar_night.bright },
BlinkCmpMenuSelection = { fg = c.none, bg = c.polar_night.brighter },
BlinkCmpLabelDeprecated = { fg = c.polar_night.light },
BlinkCmpLabelMatch = { fg = c.polar_night.ice, bold = true },
BlinkCmpGhostText = { fg = c.polar_night.light },
BlinkCmpDocBorder = { fg = c.polar_night.bright },
BlinkCmpSignatureHelpBorder = { fg = c.polar_night.bright },
BlinkCmpKindArray = { link = "@lsp.type.array" },
BlinkCmpKindBoolean = { link = "@lsp.type.boolean" },
BlinkCmpKindClass = { link = "@lsp.type.class" },
BlinkCmpKindColor = { link = "@lsp.type.color" },
BlinkCmpKindConstant = { link = "@lsp.type.constant" },
BlinkCmpKindConstructor = { link = "@lsp.type.constructor" },
BlinkCmpKindEnum = { link = "@lsp.type.enum" },
BlinkCmpKindEnumMember = { link = "@lsp.type.enumMember" },
BlinkCmpKindEvent = { link = "@lsp.type.event" },
BlinkCmpKindField = { link = "@lsp.type.field" },
BlinkCmpKindFile = { link = "@lsp.type.file" },
BlinkCmpKindFolder = { link = "@lsp.type.folder" },
BlinkCmpKindFunction = { link = "@lsp.type.function" },
BlinkCmpKindInterface = { link = "@lsp.type.interface" },
BlinkCmpKindKey = { link = "@lsp.type.key" },
BlinkCmpKindKeyword = { link = "@lsp.type.keyword" },
BlinkCmpKindMethod = { link = "@lsp.type.method" },
BlinkCmpKindModule = { link = "@lsp.type.module" },
BlinkCmpKindNamespace = { link = "@lsp.type.namespace" },
BlinkCmpKindNull = { link = "@lsp.type.null" },
BlinkCmpKindNumber = { link = "@lsp.type.number" },
BlinkCmpKindObject = { link = "@lsp.type.object" },
BlinkCmpKindOperator = { link = "@lsp.type.operator" },
BlinkCmpKindPackage = { link = "@lsp.type.package" },
BlinkCmpKindProperty = { link = "@lsp.type.property" },
BlinkCmpKindReference = { link = "@lsp.type.reference" },
BlinkCmpKindSnippet = { fg = c.aurora.green },
BlinkCmpKindString = { link = "@lsp.type.string" },
BlinkCmpKindStruct = { link = "@lsp.type.struct" },
BlinkCmpKindText = { link = "@lsp.type.text" },
BlinkCmpKindTypeParameter = { link = "@lsp.type.typeParameter" },
BlinkCmpKindUnit = { link = "@lsp.type.unit" },
BlinkCmpKindValue = { link = "@lsp.type.value" },
BlinkCmpKindVariable = { link = "@lsp.type.variable" },

BlinkCmpKindCodeium = { fg = c.aurora.green },
BlinkCmpKindCopilot = { fg = c.aurora.green },
BlinkCmpKind = { fg = c.frost.artic_water },
}
end

Expand Down

0 comments on commit 469e3ca

Please sign in to comment.