From f31be0765a8df4ed400394436064c55f73dde8ac Mon Sep 17 00:00:00 2001 From: massinissa mansouri Date: Mon, 16 Sep 2024 07:42:37 +0100 Subject: [PATCH 1/3] fix(groups): changing the transparent option now correctly invalidates the cache (#632) ## Description this PR fixes the issue where changing "transparent" option wasn't taken into account when cache was active due to cache not being invalidated properly for "transparent" value changes. ## Related Issue(s) - Fixes #561 Co-authored-by: Massinissa Mansouri --- lua/tokyonight/groups/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/tokyonight/groups/init.lua b/lua/tokyonight/groups/init.lua index 6d68f754..04970558 100644 --- a/lua/tokyonight/groups/init.lua +++ b/lua/tokyonight/groups/init.lua @@ -137,7 +137,7 @@ function M.setup(colors, opts) colors = colors, plugins = names, version = Config.version, - opts = { styles = opts.styles, dim_inactive = opts.dim_inactive }, + opts = { transparent = opts.transparent, styles = opts.styles, dim_inactive = opts.dim_inactive }, } local ret = cache and vim.deep_equal(inputs, cache.inputs) and cache.groups 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 2/3] 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 500994ba..2a737126 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 cb488bca..76981c83 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 f0d63779..e03291dc 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 5622855c..c80efd17 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 c8f3ccf6..25c6e553 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 }, From 817bb6ffff1b9ce72cdd45d9fcfa8c9cd1ad3839 Mon Sep 17 00:00:00 2001 From: folke Date: Mon, 16 Sep 2024 06:43:49 +0000 Subject: [PATCH 3/3] chore(build): auto-generate docs --- doc/tokyonight.nvim.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tokyonight.nvim.txt b/doc/tokyonight.nvim.txt index 03910b7b..ef1564cc 100644 --- a/doc/tokyonight.nvim.txt +++ b/doc/tokyonight.nvim.txt @@ -1,4 +1,4 @@ -*tokyonight.nvim.txt* For Neovim Last change: 2024 August 31 +*tokyonight.nvim.txt* For Neovim Last change: 2024 September 16 ============================================================================== Table of Contents *tokyonight.nvim-table-of-contents*