Unverified Commit 349c98e8 authored by jopejoe1's avatar jopejoe1 Committed by GitHub
Browse files

Merge pull request #330083 from doronbehar/nixos/neovim-pathsToLink

nixos/neovim: add /share/nvim to pathsToLink
parents da8fd5be 91fb48da
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -150,6 +150,10 @@ in
      cfg.finalPackage
    ];
    environment.variables.EDITOR = lib.mkIf cfg.defaultEditor (lib.mkOverride 900 "nvim");
    # On most NixOS configurations /share is already included, so it includes
    # this directory as well. But  This makes sure that /share/nvim/site paths
    # from other packages will be used by neovim.
    environment.pathsToLink = [ "/share/nvim" ];

    environment.etc = builtins.listToAttrs (builtins.attrValues (builtins.mapAttrs
      (name: value: {