theme/supported-themes.nix: switch to setupOpts

This commit is contained in:
Charlie Root 2024-10-07 00:16:22 +02:00
parent b2ba2c0ab5
commit ba1c3645ee
No known key found for this signature in database

View file

@ -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"];
};