From ad223f500bee8bfdb430fbc10b46c4b65b9c3f7a Mon Sep 17 00:00:00 2001 From: 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 Date: Tue, 18 Jul 2023 20:15:49 +0100 Subject: [PATCH 1/4] add link --- lua/onedark/highlights.lua | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lua/onedark/highlights.lua b/lua/onedark/highlights.lua index c2c249da..1fb27f52 100644 --- a/lua/onedark/highlights.lua +++ b/lua/onedark/highlights.lua @@ -785,11 +785,15 @@ function M.setup() end for group_name, group_settings in pairs(vim.g.onedark_config.highlights) do - vim.api.nvim_command(string.format("highlight %s %s %s %s %s", group_name, - replace_color("guifg", group_settings.fg), - replace_color("guibg", group_settings.bg), - replace_color("guisp", group_settings.sp), - replace_color("gui", group_settings.fmt))) + if group_settings.link == nil then + vim.api.nvim_command(string.format("highlight %s %s %s %s %s", group_name, + replace_color("guifg", group_settings.fg), + replace_color("guibg", group_settings.bg), + replace_color("guisp", group_settings.sp), + replace_color("gui", group_settings.fmt))) + else + vim.api.nvim_set_hl(0, group_name, { link = group_settings.link }) + end end end From 078eab912a458866cf1e68d938c1ca6881650a47 Mon Sep 17 00:00:00 2001 From: YuCao16 <62466929+YuCao16@users.noreply.github.com> Date: Mon, 7 Aug 2023 22:56:38 +0100 Subject: [PATCH 2/4] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index acbd5bbc..7adfdfcd 100644 --- a/README.md +++ b/README.md @@ -162,7 +162,8 @@ require('onedark').setup { ["@keyword"] = {fg = '$green'}, ["@string"] = {fg = '$bright_orange', bg = '#00ff00', fmt = 'bold'}, ["@function"] = {fg = '#0000ff', sp = '$cyan', fmt = 'underline,italic'}, - ["@function.builtin"] = {fg = '#0059ff'} + ["@function.builtin"] = {fg = '#0059ff'}, + WinSeparator = { link = "VertSplit" }, } } ``` From 37e33625f9f9febec6bb683609cae06a592e5ec9 Mon Sep 17 00:00:00 2001 From: Yu Cao Date: Sun, 16 Feb 2025 10:33:58 +0000 Subject: [PATCH 3/4] add Blink.cmp kind highlight --- lua/onedark/highlights.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/onedark/highlights.lua b/lua/onedark/highlights.lua index 3e42787f..ea7c681a 100644 --- a/lua/onedark/highlights.lua +++ b/lua/onedark/highlights.lua @@ -904,6 +904,7 @@ function M.setup() -- define cmp and aerial kind highlights with lsp_kind_icons_color for kind, color in pairs(lsp_kind_icons_color) do hl.plugins.cmp["CmpItemKind" .. kind] = { fg = color, fmt = cfg.cmp_itemkind_reverse and "reverse" } + hl.plugins.cmp["BlinkCmpKind" .. kind] = { fg = color, fmt = cfg.cmp_itemkind_reverse and "reverse" } hl.plugins.outline["Aerial" .. kind .. "Icon"] = { fg = color } hl.plugins.navic["NavicIcons" .. kind] = { fg = color } end From 22577c1da1ae4f4da8360d64cbe68ab26921fefe Mon Sep 17 00:00:00 2001 From: Yu Cao Date: Sun, 16 Feb 2025 10:36:30 +0000 Subject: [PATCH 4/4] add Blink.cmp support --- lua/onedark/highlights.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/onedark/highlights.lua b/lua/onedark/highlights.lua index ea7c681a..10161091 100644 --- a/lua/onedark/highlights.lua +++ b/lua/onedark/highlights.lua @@ -420,6 +420,11 @@ hl.plugins.cmp = { CmpItemKind = { fg = c.purple, fmt = cfg.cmp_itemkind_reverse and "reverse" }, } +hl.plugins.blink = { + BlinkCmpMenu = colors.LightGrey, + BlinkCmpKind = { fg = c.purple, fmt = cfg.cmp_itemkind_reverse and "reverse" }, +} + hl.plugins.coc = { CocErrorSign = hl.plugins.lsp.DiagnosticError, CocHintSign = hl.plugins.lsp.DiagnosticHint,