fix: accept missing transparent attribute

This commit is contained in:
Ching Pei Yang 2023-04-19 13:48:13 +02:00
parent c874b7fa99
commit 77a10e8ee4

View file

@ -1,6 +1,9 @@
{lib}: { {lib}: {
onedark = { onedark = {
setup = {style ? "dark"}: '' setup = {
style ? "dark",
transparent,
}: ''
-- OneDark theme -- OneDark theme
require('onedark').setup { require('onedark').setup {
style = "${style}" style = "${style}"
@ -11,7 +14,10 @@
}; };
tokyonight = { tokyonight = {
setup = {style ? "night"}: '' setup = {
style ? "night",
transparent,
}: ''
vim.cmd[[colorscheme tokyonight-${style}]] vim.cmd[[colorscheme tokyonight-${style}]]
''; '';
styles = ["day" "night" "storm" "moon"]; styles = ["day" "night" "storm" "moon"];