nixos/neovim: add /share/nvim to pathsToLink

This commit is contained in:
Doron Behar 2024-07-26 09:20:50 +03:00
parent 5a044fb36a
commit 91fb48da75

View File

@ -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: {