Merge pull request #55 from horriblename/bugfix-themes

fix: accept missing transparent attribute
This commit is contained in:
NotAShelf 2023-04-19 15:08:42 +03:00 committed by GitHub
commit a35005f4b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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