fix: no more calling deprecated function `makeNeovimConfig`
parent
24b7227e6f
commit
84305d33fd
|
|
@ -50,18 +50,34 @@ in {
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
pkg = pkgs.wrapNeovimUnstable config.package config.neovimOptions;
|
pkg = pkgs.wrapNeovimUnstable config.package config.neovimOptions;
|
||||||
|
luaRcContent = config.init.finalContent;
|
||||||
|
inherit (config) extraLuaPackages;
|
||||||
|
neovim-unwrapped = config.package;
|
||||||
|
inherit (neovim-unwrapped.lua.pkgs.luaLib) genLuaPathAbsStr genLuaCPathAbsStr;
|
||||||
|
luaEnv = neovim-unwrapped.lua.withPackages extraLuaPackages;
|
||||||
|
|
||||||
neovimOptions = pkgs.neovimUtils.makeNeovimConfig rec {
|
neovimOptions = {
|
||||||
inherit (config) extraLuaPackages viAlias vimAlias;
|
inherit extraLuaPackages luaRcContent;
|
||||||
|
inherit (config) viAlias vimAlias;
|
||||||
|
|
||||||
customLuaRC = config.init.finalContent;
|
wrapRc = luaRcContent != null;
|
||||||
wrapRc = customLuaRC != null;
|
|
||||||
|
|
||||||
plugins = concatLists [
|
plugins = concatLists [
|
||||||
(map modules.plugin.extract config.plugins)
|
(map modules.plugin.extract config.plugins)
|
||||||
(optional (! isNull config.runtime) config.runtime.package)
|
(optional (! isNull config.runtime) config.runtime.package)
|
||||||
[config.slothPlugin]
|
[config.slothPlugin]
|
||||||
];
|
];
|
||||||
|
|
||||||
|
wrapperArgs = lib.optionals (luaEnv != null) [
|
||||||
|
"--prefix"
|
||||||
|
"LUA_PATH"
|
||||||
|
";"
|
||||||
|
(genLuaPathAbsStr luaEnv)
|
||||||
|
"--prefix"
|
||||||
|
"LUA_CPATH"
|
||||||
|
";"
|
||||||
|
(genLuaCPathAbsStr luaEnv)
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
neovimPackage = pkg.overrideAttrs (final: super: {
|
neovimPackage = pkg.overrideAttrs (final: super: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue