mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
colorschemes/nightfox: add flavor option
This commit is contained in:
parent
56d39f54fe
commit
cf037458dd
2 changed files with 21 additions and 1 deletions
|
@ -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'";}'' ''
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue