Skip to content

Commit b52f227

Browse files
authored
Merge pull request #96 from boydkelly/blink
add blink cmp highlight groups
2 parents 0047778 + 78c7b0c commit b52f227

File tree

2 files changed

+62
-2
lines changed

2 files changed

+62
-2
lines changed

fnl/oxocarbon/init.fnl

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,38 @@
605605
(custom-set-face! :CmpItemKindValue [] {:fg oxocarbon.base01 :bg oxocarbon.base15})
606606
(custom-set-face! :CmpItemKindEnumMember [] {:fg oxocarbon.base01 :bg oxocarbon.base15})
607607

608+
;; blink
609+
610+
(custom-set-face! :BlinkCmpMenu [] {:link "Pmenu"})
611+
(custom-set-face! :BlinkCmpLabel [] {:fg oxocarbon.base04 :bg oxocarbon.base01})
612+
(custom-set-face! :BlinkCmpMenuSelection [] {:fg oxocarbon.base04 :bg oxocarbon.base01})
613+
(custom-set-face! :BlinkCmpLabelMatch [:bold]
614+
{:fg oxocarbon.base05 :bg oxocarbon.none})
615+
(custom-set-face! :BlinkCmpKind [] {:fg oxocarbon.base01 :bg oxocarbon.base09})
616+
(custom-set-face! :BlinkCmpKindText [] {:fg oxocarbon.base01 :bg oxocarbon.base09})
617+
(custom-set-face! :BlinkCmpKindEnum [] {:fg oxocarbon.base01 :bg oxocarbon.base09})
618+
(custom-set-face! :BlinkCmpKindKeyword [] {:fg oxocarbon.base01 :bg oxocarbon.base09})
619+
(custom-set-face! :BlinkCmpKindConstant [] {:fg oxocarbon.base01 :bg oxocarbon.base10})
620+
(custom-set-face! :BlinkCmpKindConstructor [] {:fg oxocarbon.base01 :bg oxocarbon.base10})
621+
(custom-set-face! :BlinkCmpKindReference [] {:fg oxocarbon.base01 :bg oxocarbon.base10})
622+
(custom-set-face! :BlinkCmpKindFunction [] {:fg oxocarbon.base01 :bg oxocarbon.base11})
623+
(custom-set-face! :BlinkCmpKindStruct [] {:fg oxocarbon.base01 :bg oxocarbon.base11})
624+
(custom-set-face! :BlinkCmpKindClass [] {:fg oxocarbon.base01 :bg oxocarbon.base11})
625+
(custom-set-face! :BlinkCmpKindModule [] {:fg oxocarbon.base01 :bg oxocarbon.base11})
626+
(custom-set-face! :BlinkCmpKindOperator [] {:fg oxocarbon.base01 :bg oxocarbon.base11})
627+
(custom-set-face! :BlinkCmpKindField [] {:fg oxocarbon.base01 :bg oxocarbon.base12})
628+
(custom-set-face! :BlinkCmpKindProperty [] {:fg oxocarbon.base01 :bg oxocarbon.base14})
629+
(custom-set-face! :BlinkCmpKindEvent [] {:fg oxocarbon.base01 :bg oxocarbon.base12})
630+
(custom-set-face! :BlinkCmpKindUnit [] {:fg oxocarbon.base01 :bg oxocarbon.base13})
631+
(custom-set-face! :BlinkCmpKindSnippet [] {:fg oxocarbon.base01 :bg oxocarbon.base13})
632+
(custom-set-face! :BlinkCmpKindFolder [] {:fg oxocarbon.base01 :bg oxocarbon.base13})
633+
(custom-set-face! :BlinkCmpKindVariable [] {:fg oxocarbon.base01 :bg oxocarbon.base14})
634+
(custom-set-face! :BlinkCmpKindFile [] {:fg oxocarbon.base01 :bg oxocarbon.base14})
635+
(custom-set-face! :BlinkCmpKindMethod [] {:fg oxocarbon.base01 :bg oxocarbon.base15})
636+
(custom-set-face! :BlinkCmpKindValue [] {:fg oxocarbon.base01 :bg oxocarbon.base15})
637+
(custom-set-face! :BlinkCmpKindEnumMember [] {:fg oxocarbon.base01 :bg oxocarbon.base15})
638+
(custom-set-face! :BlinkCmpDoc [] {:link "Pmenu"})
639+
608640
;; nvimtree
609641

610642
(custom-set-face! :NvimTreeImageFile [] {:fg oxocarbon.base12 :bg oxocarbon.none})

lua/oxocarbon/init.lua

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ local base00 = "#161616"
1010
local base06 = "#ffffff"
1111
local base09 = "#78a9ff"
1212
local oxocarbon = (((vim.o.background == "dark") and {base00 = base00, base01 = blend_hex(base00, base06, 0.085), base02 = blend_hex(base00, base06, 0.18), base03 = blend_hex(base00, base06, 0.3), base04 = blend_hex(base00, base06, 0.82), base05 = blend_hex(base00, base06, 0.95), base06 = base06, base07 = "#08bdba", base08 = "#3ddbd9", base09 = base09, base10 = "#ee5396", base11 = "#33b1ff", base12 = "#ff7eb6", base13 = "#42be65", base14 = "#be95ff", base15 = "#82cfff", blend = "#131313", none = "NONE"}) or {base00 = base06, base01 = blend_hex(base00, base06, 0.95), base02 = blend_hex(base00, base06, 0.82), base03 = base00, base04 = "#37474F", base05 = "#90A4AE", base06 = "#525252", base07 = "#08bdba", base08 = "#ff7eb6", base09 = "#ee5396", base10 = "#FF6F00", base11 = "#0f62fe", base12 = "#673AB7", base13 = "#42be65", base14 = "#be95ff", base15 = "#FFAB91", blend = "#FAFAFA", none = "NONE"})
13-
do end (vim.g)["terminal_color_0"] = oxocarbon.base01
13+
vim.g["terminal_color_0"] = oxocarbon.base01
1414
vim.g["terminal_color_1"] = oxocarbon.base11
1515
vim.g["terminal_color_2"] = oxocarbon.base14
1616
vim.g["terminal_color_3"] = oxocarbon.base13
@@ -336,6 +336,34 @@ vim.api.nvim_set_hl(0, "CmpItemKindFile", {fg = oxocarbon.base01, bg = oxocarbon
336336
vim.api.nvim_set_hl(0, "CmpItemKindMethod", {fg = oxocarbon.base01, bg = oxocarbon.base15})
337337
vim.api.nvim_set_hl(0, "CmpItemKindValue", {fg = oxocarbon.base01, bg = oxocarbon.base15})
338338
vim.api.nvim_set_hl(0, "CmpItemKindEnumMember", {fg = oxocarbon.base01, bg = oxocarbon.base15})
339+
vim.api.nvim_set_hl(0, "BlinkCmpMenu", {link = "Pmenu"})
340+
vim.api.nvim_set_hl(0, "BlinkCmpLabel", {fg = oxocarbon.base04, bg = oxocarbon.base01})
341+
vim.api.nvim_set_hl(0, "BlinkCmpMenuSelection", {fg = oxocarbon.base04, bg = oxocarbon.base01})
342+
vim.api.nvim_set_hl(0, "BlinkCmpLabelMatch", {fg = oxocarbon.base05, bg = oxocarbon.none, bold = true})
343+
vim.api.nvim_set_hl(0, "BlinkCmpKind", {fg = oxocarbon.base01, bg = oxocarbon.base09})
344+
vim.api.nvim_set_hl(0, "BlinkCmpKindText", {fg = oxocarbon.base01, bg = oxocarbon.base09})
345+
vim.api.nvim_set_hl(0, "BlinkCmpKindEnum", {fg = oxocarbon.base01, bg = oxocarbon.base09})
346+
vim.api.nvim_set_hl(0, "BlinkCmpKindKeyword", {fg = oxocarbon.base01, bg = oxocarbon.base09})
347+
vim.api.nvim_set_hl(0, "BlinkCmpKindConstant", {fg = oxocarbon.base01, bg = oxocarbon.base10})
348+
vim.api.nvim_set_hl(0, "BlinkCmpKindConstructor", {fg = oxocarbon.base01, bg = oxocarbon.base10})
349+
vim.api.nvim_set_hl(0, "BlinkCmpKindReference", {fg = oxocarbon.base01, bg = oxocarbon.base10})
350+
vim.api.nvim_set_hl(0, "BlinkCmpKindFunction", {fg = oxocarbon.base01, bg = oxocarbon.base11})
351+
vim.api.nvim_set_hl(0, "BlinkCmpKindStruct", {fg = oxocarbon.base01, bg = oxocarbon.base11})
352+
vim.api.nvim_set_hl(0, "BlinkCmpKindClass", {fg = oxocarbon.base01, bg = oxocarbon.base11})
353+
vim.api.nvim_set_hl(0, "BlinkCmpKindModule", {fg = oxocarbon.base01, bg = oxocarbon.base11})
354+
vim.api.nvim_set_hl(0, "BlinkCmpKindOperator", {fg = oxocarbon.base01, bg = oxocarbon.base11})
355+
vim.api.nvim_set_hl(0, "BlinkCmpKindField", {fg = oxocarbon.base01, bg = oxocarbon.base12})
356+
vim.api.nvim_set_hl(0, "BlinkCmpKindProperty", {fg = oxocarbon.base01, bg = oxocarbon.base14})
357+
vim.api.nvim_set_hl(0, "BlinkCmpKindEvent", {fg = oxocarbon.base01, bg = oxocarbon.base12})
358+
vim.api.nvim_set_hl(0, "BlinkCmpKindUnit", {fg = oxocarbon.base01, bg = oxocarbon.base13})
359+
vim.api.nvim_set_hl(0, "BlinkCmpKindSnippet", {fg = oxocarbon.base01, bg = oxocarbon.base13})
360+
vim.api.nvim_set_hl(0, "BlinkCmpKindFolder", {fg = oxocarbon.base01, bg = oxocarbon.base13})
361+
vim.api.nvim_set_hl(0, "BlinkCmpKindVariable", {fg = oxocarbon.base01, bg = oxocarbon.base14})
362+
vim.api.nvim_set_hl(0, "BlinkCmpKindFile", {fg = oxocarbon.base01, bg = oxocarbon.base14})
363+
vim.api.nvim_set_hl(0, "BlinkCmpKindMethod", {fg = oxocarbon.base01, bg = oxocarbon.base15})
364+
vim.api.nvim_set_hl(0, "BlinkCmpKindValue", {fg = oxocarbon.base01, bg = oxocarbon.base15})
365+
vim.api.nvim_set_hl(0, "BlinkCmpKindEnumMember", {fg = oxocarbon.base01, bg = oxocarbon.base15})
366+
vim.api.nvim_set_hl(0, "BlinkCmpDoc", {link = "Pmenu"})
339367
vim.api.nvim_set_hl(0, "NvimTreeImageFile", {fg = oxocarbon.base12, bg = oxocarbon.none})
340368
vim.api.nvim_set_hl(0, "NvimTreeFolderIcon", {fg = oxocarbon.base12, bg = oxocarbon.none})
341369
vim.api.nvim_set_hl(0, "NvimTreeWinSeparator", {fg = oxocarbon.base00, bg = oxocarbon.base00})
@@ -373,4 +401,4 @@ vim.api.nvim_set_hl(0, "VimwikiHeaderChar", {link = "markdownH1"})
373401
vim.api.nvim_set_hl(0, "VimwikiList", {link = "markdownListMarker"})
374402
vim.api.nvim_set_hl(0, "VimwikiLink", {link = "markdownUrl"})
375403
vim.api.nvim_set_hl(0, "VimwikiCode", {link = "markdownCode"})
376-
return {oxocarbon = oxocarbon}
404+
return {oxocarbon = oxocarbon}

0 commit comments

Comments
 (0)