From 9699675f988ad5a2df21b7875362af6d15d0f53c Mon Sep 17 00:00:00 2001 From: Christoph Zirkelbach <31811+tigion@users.noreply.github.com> Date: Mon, 16 Sep 2024 08:43:20 +0200 Subject: [PATCH] feat(supermaven): add support for supermaven-nvim (#633) ## Description Add `CmpItemKindSupermaven` support for plugin [supermaven-nvim](https://github.com/supermaven-inc/supermaven-nvim) like copilot and codeium. --- extras/lua/tokyonight_day.lua | 4 ++++ extras/lua/tokyonight_moon.lua | 4 ++++ extras/lua/tokyonight_night.lua | 4 ++++ extras/lua/tokyonight_storm.lua | 4 ++++ lua/tokyonight/groups/cmp.lua | 1 + 5 files changed, 17 insertions(+) diff --git a/extras/lua/tokyonight_day.lua b/extras/lua/tokyonight_day.lua index 500994baa..2a7371267 100644 --- a/extras/lua/tokyonight_day.lua +++ b/extras/lua/tokyonight_day.lua @@ -610,6 +610,10 @@ local highlights = { CmpItemKindSnippet = "LspKindSnippet", CmpItemKindString = "LspKindString", CmpItemKindStruct = "LspKindStruct", + CmpItemKindSupermaven = { + bg = "NONE", + fg = "#118c74" + }, CmpItemKindTabNine = { bg = "NONE", fg = "#118c74" diff --git a/extras/lua/tokyonight_moon.lua b/extras/lua/tokyonight_moon.lua index cb488bca4..76981c830 100644 --- a/extras/lua/tokyonight_moon.lua +++ b/extras/lua/tokyonight_moon.lua @@ -610,6 +610,10 @@ local highlights = { CmpItemKindSnippet = "LspKindSnippet", CmpItemKindString = "LspKindString", CmpItemKindStruct = "LspKindStruct", + CmpItemKindSupermaven = { + bg = "NONE", + fg = "#4fd6be" + }, CmpItemKindTabNine = { bg = "NONE", fg = "#4fd6be" diff --git a/extras/lua/tokyonight_night.lua b/extras/lua/tokyonight_night.lua index f0d637793..e03291dc2 100644 --- a/extras/lua/tokyonight_night.lua +++ b/extras/lua/tokyonight_night.lua @@ -610,6 +610,10 @@ local highlights = { CmpItemKindSnippet = "LspKindSnippet", CmpItemKindString = "LspKindString", CmpItemKindStruct = "LspKindStruct", + CmpItemKindSupermaven = { + bg = "NONE", + fg = "#1abc9c" + }, CmpItemKindTabNine = { bg = "NONE", fg = "#1abc9c" diff --git a/extras/lua/tokyonight_storm.lua b/extras/lua/tokyonight_storm.lua index 5622855ce..c80efd172 100644 --- a/extras/lua/tokyonight_storm.lua +++ b/extras/lua/tokyonight_storm.lua @@ -610,6 +610,10 @@ local highlights = { CmpItemKindSnippet = "LspKindSnippet", CmpItemKindString = "LspKindString", CmpItemKindStruct = "LspKindStruct", + CmpItemKindSupermaven = { + bg = "NONE", + fg = "#1abc9c" + }, CmpItemKindTabNine = { bg = "NONE", fg = "#1abc9c" diff --git a/lua/tokyonight/groups/cmp.lua b/lua/tokyonight/groups/cmp.lua index c8f3ccf69..25c6e553d 100644 --- a/lua/tokyonight/groups/cmp.lua +++ b/lua/tokyonight/groups/cmp.lua @@ -15,6 +15,7 @@ function M.get(c, opts) CmpItemAbbrMatchFuzzy = { fg = c.blue1, bg = c.none }, CmpItemKindCodeium = { fg = c.teal, bg = c.none }, CmpItemKindCopilot = { fg = c.teal, bg = c.none }, + CmpItemKindSupermaven = { fg = c.teal, bg = c.none }, CmpItemKindDefault = { fg = c.fg_dark, bg = c.none }, CmpItemKindTabNine = { fg = c.teal, bg = c.none }, CmpItemMenu = { fg = c.comment, bg = c.none },