summaryrefslogtreecommitdiff
path: root/common/modules/matugen/templates/matugen-nvim.nix
blob: 276d6954a0aec8f15bef88c688fe37aec3546dde (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
{
  config,
  lib,
  ...
}:
{
  config =
    lib.mkIf (config.wrappers.neovim.enable && config.beeMods.windowManagers.beeConfig.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 *>
              }
            '';
          };
        };
      };
}