summaryrefslogtreecommitdiff
path: root/common/modules/matugen/templates/matugen-nvim.nix
blob: 8e6f5f5a8837279dcdc4066b5c03fb0270c6f8aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
  config,
  lib,
  ...
}:
{
  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 *>
        }
      '';
    };
  };
}