aboutsummaryrefslogtreecommitdiff
path: root/modules/scheme/default.nix
diff options
context:
space:
mode:
authorStefan Weigl-Bosker <stefan@s00.xyz>2025-04-07 15:24:01 -0400
committerStefan Weigl-Bosker <stefan@s00.xyz>2025-04-07 15:24:01 -0400
commit993ee553170d01d3d0e7bcef7afc05b80f15b10a (patch)
tree261833dccfca4c76337740707e3cc8ee7e5de7fa /modules/scheme/default.nix
parent52666e5590a4c24d1085c242918398b9e1be741a (diff)
downloadhome-993ee553170d01d3d0e7bcef7afc05b80f15b10a.tar.gz
imporve colors module
Diffstat (limited to 'modules/scheme/default.nix')
-rw-r--r--modules/scheme/default.nix43
1 files changed, 13 insertions, 30 deletions
diff --git a/modules/scheme/default.nix b/modules/scheme/default.nix
index 9d6e77e..0e1f0be 100644
--- a/modules/scheme/default.nix
+++ b/modules/scheme/default.nix
@@ -5,36 +5,6 @@ let
hexColor = {
type = lib.types.strMatching hexColorRegex;
};
- base16Palette = {
- options = {
- name = lib.mkOption {
- type = lib.types.uniq lib.types.str;
- description = "scheme name";
- example = "base16-default-dark";
- };
- light = lib.mkOption {
- type = lib.types.uniq lib.types.bool;
- default = false;
- description = "whether this is a light colorscheme";
- };
- base00 = lib.mkOption hexColor;
- base01 = lib.mkOption hexColor;
- base02 = lib.mkOption hexColor;
- base03 = lib.mkOption hexColor;
- base04 = lib.mkOption hexColor;
- base05 = lib.mkOption hexColor;
- base06 = lib.mkOption hexColor;
- base07 = lib.mkOption hexColor;
- base08 = lib.mkOption hexColor;
- base09 = lib.mkOption hexColor;
- base0A = lib.mkOption hexColor;
- base0B = lib.mkOption hexColor;
- base0C = lib.mkOption hexColor;
- base0D = lib.mkOption hexColor;
- base0E = lib.mkOption hexColor;
- base0F = lib.mkOption hexColor;
- };
- };
in
{
options.modules.scheme = {
@@ -43,6 +13,19 @@ in
description = "scheme name";
example = "base16-default-dark";
};
+ light = lib.mkOption {
+ type = lib.types.uniq lib.types.bool;
+ default = false;
+ description = "whether this is a light colorscheme";
+ };
+ extraVimConfig = lib.mkOption {
+ type = lib.types.str;
+ default = "";
+ description = ''
+ extra vimscript config for the theme.
+ Intended use is to set extra highlights.
+ '';
+ };
base00 = lib.mkOption hexColor;
base01 = lib.mkOption hexColor;
base02 = lib.mkOption hexColor;