mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-24 04:18:03 +00:00
theme/theme.nix: fix up base16 helper func
Co-authored-by: diniamo <55629891+diniamo@users.noreply.github.com>
This commit is contained in:
parent
49ec0adca3
commit
423ed4d1d6
1 changed files with 12 additions and 12 deletions
|
@ -17,18 +17,18 @@
|
||||||
inherit lib config;
|
inherit lib config;
|
||||||
};
|
};
|
||||||
|
|
||||||
numbers = lib.stringToCharacters "0123456789ABCDEF";
|
numbers = ["0" "1" "2" "3" "4" "5" "6" "7" "8" "9" "A" "B" "C" "D" "E" "F"];
|
||||||
generateBase16Options = listToAttrs (map (i: {
|
base16Options = listToAttrs (map (n: {
|
||||||
name = "base0${i}";
|
name = "base0${n}";
|
||||||
value = mkOption {
|
value = mkOption {
|
||||||
|
description = "The base0${n} color to use";
|
||||||
type = hexColor;
|
type = hexColor;
|
||||||
apply = v:
|
apply = v:
|
||||||
if hasPrefix "#" v
|
if hasPrefix "#" v
|
||||||
then v
|
then v
|
||||||
else "#${v}";
|
else "#${v}";
|
||||||
};
|
};
|
||||||
})
|
}) numbers);
|
||||||
numbers);
|
|
||||||
in {
|
in {
|
||||||
options.vim.theme = {
|
options.vim.theme = {
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
|
|
Loading…
Add table
Reference in a new issue