Commit c3a2ce47 authored by linsui's avatar linsui Committed by Matthieu Coudron
Browse files

nixos/neovim: fix runtime.text

parent 3c277b53
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -138,7 +138,8 @@ in
            };

            source = mkOption {
              type = types.path;
              default = null;
              type = types.nullOr types.path;
              description = lib.mdDoc "Path of the source file.";
            };

@@ -160,9 +161,11 @@ in
    environment.etc = listToAttrs (attrValues (mapAttrs
      (name: value: {
        name = "xdg/nvim/${name}";
        value = value // {
        value = removeAttrs
          (value // {
            target = "xdg/nvim/${value.target}";
        };
          })
          (optionals (isNull value.source) [ "source" ]);
      })
      cfg.runtime));