theme/oxocarbon: add oxocarbon theme module

This commit is contained in:
Frothy 2023-10-20 16:19:29 -06:00
commit e722c97188
5 changed files with 40 additions and 0 deletions

View file

@ -2,4 +2,5 @@
"tokyonight"
"onedark"
"catppuccin"
"oxocarbon"
]

View file

@ -77,4 +77,19 @@
'';
styles = ["latte" "frappe" "macchiato" "mocha"];
};
oxocarbon = {
setup = {
style ? "dark",
transparent ? false,
}: let
style' =
lib.warnIf (style == "light") "oxocarbon: light theme is not well-supported" style;
in ''
require('oxocarbon')
vim.opt.background = "${style'}"
vim.cmd.colorscheme = "oxocarbon"
'';
styles = ["dark" "light"];
};
}