mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 17:03:31 +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 ];
|
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 = {
|
settingsOptions = {
|
||||||
options = {
|
options = {
|
||||||
compile_path = helpers.defaultNullOpts.mkStr ''{__raw = "vim.fn.stdpath('cache') .. '/nightfox'";}'' ''
|
compile_path = helpers.defaultNullOpts.mkStr ''{__raw = "vim.fn.stdpath('cache') .. '/nightfox'";}'' ''
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
options = {
|
options = {
|
||||||
|
|
||||||
compile_path.__raw = "vim.fn.stdpath('cache') .. '/nightfox'";
|
compile_path.__raw = "vim.fn.stdpath('cache') .. '/nightfox'";
|
||||||
compile_file_suffix = "_compiled";
|
compile_file_suffix = "_compiled";
|
||||||
transparent = false;
|
transparent = false;
|
||||||
|
@ -74,6 +73,8 @@
|
||||||
colorschemes.nightfox = {
|
colorschemes.nightfox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
flavor = "dayfox";
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
options = {
|
options = {
|
||||||
transparent = true;
|
transparent = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue