@@ -54,15 +54,7 @@ let
5454
5555
5656 configurePatched = configure // {
57− packages.nix = {
58− start = lib.filter (f: f != null)
59− (map (x: if x.optional == false then x.plugin else null)
60− pluginsNormalized);
61− opt = lib.filter (f: f != null)
62− (map (x: if x.optional == true then x.plugin else null)
63− pluginsNormalized);
64− };
65− customRC = pluginRc + customRC;
57+ customRC = pluginRc + customRC + (configure.customRC or "");
6658 };
6759
6860 # A function to get the configuration string (if any) from an element of 'plugins'
@@ -173,11 +165,8 @@ let
173165 assert withPython -> throw "Python2 support has been removed from neovim, please remove withPython and extraPythonPackages.";
174166
175167 wrapNeovimUnstable neovim (res // {
176− wrapperArgs = lib.escapeShellArgs (
177− res.wrapperArgs ++ lib.optionals (configure != {}) [
178− "--add-flags" "-u ${writeText "init.vim" res.neovimRcContent}"
179− ]) + " " + extraMakeWrapperArgs
180− ;
168+ wrapperArgs = lib.escapeShellArgs res.wrapperArgs + extraMakeWrapperArgs;
169+ wrapRc = (configure != {});
181170 });
182171in
183172{