summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthieu Coudron <mcoudron@hotmail.com>2023-02-28 11:56:21 +0100
committerMatthieu Coudron <teto@users.noreply.github.com>2023-02-28 11:59:22 +0100
commit71210f04101a86edb519085e53002f6d8b4d7ba9 (patch)
tree11bc614dc1f5934c763f0438a1af67d76859a1bc
parent590e56a73ff8f5ac694c6b357d5eb4f4e3e24758 (diff)
downloadnixpkgs-71210f04101a86edb519085e53002f6d8b4d7ba9.tar
nixpkgs-71210f04101a86edb519085e53002f6d8b4d7ba9.tar.gz
nixpkgs-71210f04101a86edb519085e53002f6d8b4d7ba9.tar.bz2
nixpkgs-71210f04101a86edb519085e53002f6d8b4d7ba9.tar.lz
nixpkgs-71210f04101a86edb519085e53002f6d8b4d7ba9.tar.xz
nixpkgs-71210f04101a86edb519085e53002f6d8b4d7ba9.tar.zst
nixpkgs-71210f04101a86edb519085e53002f6d8b4d7ba9.zip
neovimUtils.makeNeovimConfig: expose packpathsDir
this way home-manager can link the packpathDir in
~/.local/share/nvim/site which makes package discovery work without
needing to `set packpath` (making the wrapper further useless).
-rw-r--r--pkgs/applications/editors/neovim/utils.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/applications/editors/neovim/utils.nix b/pkgs/applications/editors/neovim/utils.nix
index 05037eafcb8..125fae66f7f 100644
--- a/pkgs/applications/editors/neovim/utils.nix
+++ b/pkgs/applications/editors/neovim/utils.nix
@@ -89,6 +89,8 @@ let
         python3 = withPython3;
         ruby = withRuby;
       };
+      # as expected by packdir
+      packpathDirs.myNeovimPackages = myVimPackage;
       ## Here we calculate all of the arguments to the 1st call of `makeWrapper`
       # We start with the executable itself NOTE we call this variable "initial"
       # because if configure != {} we need to call makeWrapper twice, in order to
@@ -131,6 +133,7 @@ let
 
     builtins.removeAttrs args ["plugins"] // {
       wrapperArgs = makeWrapperArgs;
+      inherit packpathDirs;
       inherit neovimRcContent;
       inherit manifestRc;
       inherit python3Env;