From ba1c3645ee32f323d0310795ed1fba0d805c9b30 Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Mon, 7 Oct 2024 00:16:22 +0200 Subject: [PATCH] theme/supported-themes.nix: switch to setupOpts --- modules/plugins/theme/supported-themes.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/plugins/theme/supported-themes.nix b/modules/plugins/theme/supported-themes.nix index 3ae26d3..71fe984 100644 --- a/modules/plugins/theme/supported-themes.nix +++ b/modules/plugins/theme/supported-themes.nix @@ -26,8 +26,8 @@ in { setupOpts = { inherit (cfg) transparent; }; - setup = {style ? "night", ...}: '' - vim.cmd[[colorscheme tokyonight-${style}]] + setup = _: '' + vim.cmd[[colorscheme tokyonight-${cfg.style ? "night"}]] ''; styles = ["day" "night" "storm" "moon"]; };