colorschemes/nightfox: add flavor option

This commit is contained in:
Gaetan Lepage 2024-05-28 21:24:19 +02:00 committed by Gaétan Lepage
parent 56d39f54fe
commit cf037458dd
2 changed files with 21 additions and 1 deletions

View file

@ -14,6 +14,25 @@ helpers.neovim-plugin.mkNeovimPlugin config {
maintainers = [ maintainers.GaetanLepage ];
colorscheme = null;
extraOptions = {
flavor = mkOption {
type = types.enum [
"carbonfox"
"dawnfox"
"dayfox"
"duskfox"
"nightfox"
"nordfox"
"terafox"
];
example = "dayfox";
default = "nightfox";
description = "Which palette/flavor to use as the colorscheme.";
};
};
extraConfig = cfg: { colorscheme = mkDefault cfg.flavor; };
settingsOptions = {
options = {
compile_path = helpers.defaultNullOpts.mkStr ''{__raw = "vim.fn.stdpath('cache') .. '/nightfox'";}'' ''

View file

@ -9,7 +9,6 @@
settings = {
options = {
compile_path.__raw = "vim.fn.stdpath('cache') .. '/nightfox'";
compile_file_suffix = "_compiled";
transparent = false;
@ -74,6 +73,8 @@
colorschemes.nightfox = {
enable = true;
flavor = "dayfox";
settings = {
options = {
transparent = true;