From 91fb48da7554115400cc6b7a1bfa603e5cfefdb7 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Fri, 26 Jul 2024 09:20:50 +0300 Subject: [PATCH] nixos/neovim: add /share/nvim to pathsToLink --- nixos/modules/programs/neovim.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/modules/programs/neovim.nix b/nixos/modules/programs/neovim.nix index 8fe6a664b675..142cca9f322a 100644 --- a/nixos/modules/programs/neovim.nix +++ b/nixos/modules/programs/neovim.nix @@ -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: {