Skip to content

Commit

Permalink
feat(modules/nixvim): add color scheme
Browse files Browse the repository at this point in the history
Closes: #153
  • Loading branch information
trueNAHO committed Oct 22, 2023
1 parent b2f7372 commit 0726fcf
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions modules/nixvim/nixvim.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
config,
lib,
...
}: {
options.stylix.targets.nixvim.enable =
config.lib.stylix.mkEnableTarget "nixvim" true;

config = lib.mkIf config.stylix.targets.nixvim.enable {
programs.nixvim.colorschemes.base16.customColorScheme = let
colors = config.lib.stylix.colors;
prependHash = color: "#${color}";
in {
base00 = prependHash colors.base00;
base01 = prependHash colors.base01;
base02 = prependHash colors.base02;
base03 = prependHash colors.base03;
base04 = prependHash colors.base04;
base05 = prependHash colors.base05;
base06 = prependHash colors.base06;
base07 = prependHash colors.base07;
base08 = prependHash colors.base08;
base09 = prependHash colors.base09;
base0A = prependHash colors.base0A;
base0B = prependHash colors.base0B;
base0C = prependHash colors.base0C;
base0D = prependHash colors.base0D;
base0E = prependHash colors.base0E;
base0F = prependHash colors.base0F;
};
};
}

0 comments on commit 0726fcf

Please sign in to comment.