Skip to content

Commit

Permalink
refactor(modules/nixvim): use already provided functionality
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Thwaites <[email protected]>
  • Loading branch information
trueNAHO and danth authored Oct 23, 2023
1 parent 0726fcf commit d00295d
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions modules/nixvim/nixvim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,24 @@

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

0 comments on commit d00295d

Please sign in to comment.