summaryrefslogtreecommitdiff
path: root/common/modules/matugen/templates/matugen-neovim.nix
blob: dcb84a27047292e9cf299f65cb7ad0ed3b387f57 (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
25
26
27
28
{
  config,
  lib,
  ...
}:
{
  config = lib.mkIf config.beeMods.beeVim.enable {
    xdg.configFile = {
      "matugen/templates/neovim.json" = {
        text =
          # json
          ''
            {
                "source_color": "{{colors.primary.default.hex}}",
                <* if {{ is_dark_mode }} *>
                "background": "{{colors.background.default.hex}}",
                <* else *>
                "background": "{{colors.surface_container.default.hex}}",
                <* endif *>
                "harmony": 0.5,
                "mode": "{{mode}}"
            }
          '';

      };
    };
  };
}