From 65c64492e574366e381c610a699bae08d80039d1 Mon Sep 17 00:00:00 2001 From: Ching Pei Yang <59727193+horriblename@users.noreply.github.com> Date: Tue, 18 Apr 2023 17:10:14 +0200 Subject: [PATCH 1/3] tokyonight: update deprecated style setup --- modules/theme/supported_themes.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/theme/supported_themes.nix b/modules/theme/supported_themes.nix index 814b412..e619bce 100644 --- a/modules/theme/supported_themes.nix +++ b/modules/theme/supported_themes.nix @@ -12,9 +12,7 @@ tokyonight = { setup = {style ? "night"}: '' - -- need to set style before colorscheme to apply - vim.g.tokyonight_style = '${style}' - vim.cmd[[colorscheme tokyonight]] + vim.cmd[[colorscheme tokyonight-${style}]] ''; styles = ["day" "night" "storm"]; }; From 3b85a387b479de943750c1a58b5515af620deb87 Mon Sep 17 00:00:00 2001 From: Ching Pei Yang <59727193+horriblename@users.noreply.github.com> Date: Tue, 18 Apr 2023 17:10:52 +0200 Subject: [PATCH 2/3] tokyonight: add new style --- modules/theme/supported_themes.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/theme/supported_themes.nix b/modules/theme/supported_themes.nix index e619bce..d787f82 100644 --- a/modules/theme/supported_themes.nix +++ b/modules/theme/supported_themes.nix @@ -14,7 +14,7 @@ setup = {style ? "night"}: '' vim.cmd[[colorscheme tokyonight-${style}]] ''; - styles = ["day" "night" "storm"]; + styles = ["day" "night" "storm" "moon"]; }; dracula = { From b9ec7702c5682b616e64a91b4c75346fcbcd25d8 Mon Sep 17 00:00:00 2001 From: Ching Pei Yang <59727193+horriblename@users.noreply.github.com> Date: Tue, 18 Apr 2023 19:17:10 +0200 Subject: [PATCH 3/3] update release notes --- docs/release-notes/rl-0.3.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/release-notes/rl-0.3.adoc b/docs/release-notes/rl-0.3.adoc index 26b52c2..0d64544 100644 --- a/docs/release-notes/rl-0.3.adoc +++ b/docs/release-notes/rl-0.3.adoc @@ -15,3 +15,5 @@ * Improved handling of completion formatting. When setting <>, can also include optional menu mapping. And can provide your own function with <>. * For <> and <> turning them off should use `null` rather than `""` now. + +* Fixed deprecated configuration method for Tokyonight, and added new style "moon"