From 71210f04101a86edb519085e53002f6d8b4d7ba9 Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Tue, 28 Feb 2023 11:56:21 +0100 Subject: [PATCH] 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). --- pkgs/applications/editors/neovim/utils.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/editors/neovim/utils.nix b/pkgs/applications/editors/neovim/utils.nix index 05037eafcb87..125fae66f7f7 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;