|
| 1 | +local M = {} |
| 2 | +local util = require("cyberdream.util") |
| 3 | + |
| 4 | +--- Get extension configuration |
| 5 | +--- @param opts Config |
| 6 | +--- @param t CyberdreamPalette |
| 7 | +function M.get(opts, t) |
| 8 | + opts = opts or {} |
| 9 | + local highlights = { |
| 10 | + BlinkCmpMenu = { link = "Pmenu" }, |
| 11 | + BlinkCmpMenuBorder = { fg = util.blend(t.bgHighlight, t.grey, 0.7) }, |
| 12 | + BlinkCmpMenuSelection = { bg = t.bgHighlight }, |
| 13 | + BlinkCmpLabel = { link = "Normal" }, |
| 14 | + BlinkCmpLabelDeprecated = { fg = t.grey, strikethrough = true }, |
| 15 | + BlinkCmpLabelMatch = { fg = t.cyan }, |
| 16 | + BlinkCmpDoc = { link = "NormalFloat" }, |
| 17 | + BlinkCmpDocBorder = { link = "BlinkCmpMenuBorder" }, |
| 18 | + BlinkCmpDocCursorLine = { link = "Visual" }, |
| 19 | + BlinkCmpSignatureHelp = { link = "NormalFloat" }, |
| 20 | + BlinkCmpSignatureHelpBorder = { link = "BlinkCmpMenuBorder" }, |
| 21 | + BlinkCmpSignatureHelpActiveParameter = { fg = t.cyan }, |
| 22 | + |
| 23 | + -- Kinds |
| 24 | + BlinkCmpKindText = { fg = t.green }, |
| 25 | + BlinkCmpKindMethod = { fg = t.blue }, |
| 26 | + BlinkCmpKindFunction = { fg = t.blue }, |
| 27 | + BlinkCmpKindConstructor = { fg = t.purple }, |
| 28 | + |
| 29 | + BlinkCmpKindField = { fg = t.green }, |
| 30 | + BlinkCmpKindVariable = { fg = t.orange }, |
| 31 | + BlinkCmpKindProperty = { fg = t.red }, |
| 32 | + |
| 33 | + BlinkCmpKindClass = { fg = t.blue }, |
| 34 | + BlinkCmpKindInterface = { fg = t.blue }, |
| 35 | + BlinkCmpKindStruct = { fg = t.blue }, |
| 36 | + BlinkCmpKindModule = { fg = t.blue }, |
| 37 | + |
| 38 | + BlinkCmpKindUnit = { fg = t.orange }, |
| 39 | + BlinkCmpKindValue = { fg = t.orange }, |
| 40 | + BlinkCmpKindEnum = { fg = t.orange }, |
| 41 | + BlinkCmpKindEnumMember = { fg = t.orange }, |
| 42 | + |
| 43 | + BlinkCmpKindKeyword = { fg = t.magenta }, |
| 44 | + BlinkCmpKindConstant = { fg = t.pink }, |
| 45 | + |
| 46 | + BlinkCmpKindSnippet = { fg = t.green }, |
| 47 | + BlinkCmpKindColor = { fg = t.green }, |
| 48 | + BlinkCmpKindFile = { fg = t.green }, |
| 49 | + BlinkCmpKindReference = { fg = t.green }, |
| 50 | + BlinkCmpKindFolder = { fg = t.green }, |
| 51 | + BlinkCmpKindEvent = { fg = t.green }, |
| 52 | + BlinkCmpKindOperator = { fg = t.magenta }, |
| 53 | + BlinkCmpKindTypeParameter = { fg = t.pink }, |
| 54 | + } |
| 55 | + |
| 56 | + return highlights |
| 57 | +end |
| 58 | +return M |
0 commit comments