summaryrefslogtreecommitdiff
path: root/common/modules/matugen/templates/matugen-nvim.nix
blob: 3be508e11de67af34e32a123706badf0c50ee985 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
  config,
  lib,
  ...
}:
{
  config = lib.mkIf (config.wrappers.neovim.enable) {
    xdg.configFile = {
      "matugen/templates/neovim.json" = {
        text = ''
          {
              "mode": "{{mode}}",
              "source_color":"{{colors.primary.default.hex}}",
              <* if {{ is_dark_mode }} *>
              "background":"{{colors.surface.default.hex}}"
              <* else *>
              "background":"{{colors.surface_container_low.default.hex}}"
              <* endif *>
          }
        '';
      };
    };
  };
}