neovim: reference neovim-unwrapped lua

less opportunities to mess the reference up by referencing unwrapped's lua directly.
This commit is contained in:
teto 2026-03-09 22:52:33 +01:00 committed by Matthieu Coudron
parent 1b2dc84c81
commit 3f98e2bbc6

View file

@ -414,12 +414,19 @@ in
) allPlugins;
# remove attributes not understood by nixpkgs' "makeVimPackageInfo"
suppressIncompatibleConfig = p: lib.filterAttrs
(n: v: builtins.elem n ["plugin" "optional" "config"])
(if p.type != "viml" then p // { config = null; } else p);
suppressIncompatibleConfig =
p:
lib.filterAttrs (
n: v:
builtins.elem n [
"plugin"
"optional"
"config"
]
) (if p.type != "viml" then p // { config = null; } else p);
# Lua & Python Package Resolution
luaPackages = cfg.finalPackage.unwrapped.lua.pkgs;
luaPackages = cfg.package.lua.pkgs;
resolvedExtraLuaPackages = cfg.extraLuaPackages luaPackages;
# Wrapper Arguments Construction