mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 21:30:51 +00:00
theme/supported-themes.nix: use mergeAttrsList to generate options
This commit is contained in:
parent
e9f9353c45
commit
67fb3e00a4
1 changed files with 18 additions and 16 deletions
|
@ -3,7 +3,7 @@
|
||||||
lib,
|
lib,
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.strings) hasPrefix optionalString;
|
inherit (lib.strings) hasPrefix optionalString;
|
||||||
inherit (lib.attrsets) genAttrs listToAttrs;
|
inherit (lib.attrsets) genAttrs listToAttrs mergeAttrsList;
|
||||||
inherit (lib.options) mkOption mkEnableOption;
|
inherit (lib.options) mkOption mkEnableOption;
|
||||||
inherit (lib.types) bool str;
|
inherit (lib.types) bool str;
|
||||||
inherit (lib.nvim.types) hexColor mkPluginSetupOption;
|
inherit (lib.nvim.types) hexColor mkPluginSetupOption;
|
||||||
|
@ -174,21 +174,23 @@ in {
|
||||||
# palette_overrides = mkLuaInline "{}";
|
# palette_overrides = mkLuaInline "{}";
|
||||||
# overrides = mkLuaInline "{}";
|
# overrides = mkLuaInline "{}";
|
||||||
}
|
}
|
||||||
// genAttrs [
|
// mergeAttrsList [
|
||||||
"terminal_colors"
|
(genAttrs [
|
||||||
"undercurls"
|
"terminal_colors"
|
||||||
"underline"
|
"undercurls"
|
||||||
"bold"
|
"underline"
|
||||||
"strikethrough"
|
"bold"
|
||||||
"inverse"
|
"strikethrough"
|
||||||
] (name: mkEnableOption' name)
|
"inverse"
|
||||||
// genAttrs [
|
] (name: mkEnableOption' name))
|
||||||
"invert_selection"
|
(genAttrs [
|
||||||
"invert_signs"
|
"invert_selection"
|
||||||
"invert_tabline"
|
"invert_signs"
|
||||||
"invert_intend_guides"
|
"invert_tabline"
|
||||||
"dim_inactive"
|
"invert_intend_guides"
|
||||||
] (name: mkEnableOption name);
|
"dim_inactive"
|
||||||
|
] (name: mkEnableOption name))
|
||||||
|
];
|
||||||
setup = ''
|
setup = ''
|
||||||
-- Gruvbox theme
|
-- Gruvbox theme
|
||||||
vim.o.background = "${cfg.style}"
|
vim.o.background = "${cfg.style}"
|
||||||
|
|
Loading…
Reference in a new issue