From 77a10e8ee41b10fffc8b8d506b3d1ecb86893a38 Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Wed, 19 Apr 2023 13:48:13 +0200 Subject: [PATCH] fix: accept missing transparent attribute --- modules/theme/supported_themes.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/theme/supported_themes.nix b/modules/theme/supported_themes.nix index d2a20dc..10e0f6c 100644 --- a/modules/theme/supported_themes.nix +++ b/modules/theme/supported_themes.nix @@ -1,6 +1,9 @@ {lib}: { onedark = { - setup = {style ? "dark"}: '' + setup = { + style ? "dark", + transparent, + }: '' -- OneDark theme require('onedark').setup { style = "${style}" @@ -11,7 +14,10 @@ }; tokyonight = { - setup = {style ? "night"}: '' + setup = { + style ? "night", + transparent, + }: '' vim.cmd[[colorscheme tokyonight-${style}]] ''; styles = ["day" "night" "storm" "moon"];