refactor: simplify configuration creation

dev
LeMarsu 2026-02-28 00:56:00 +01:00
parent 99b4355a1a
commit 27c8d275c5
1 changed files with 14 additions and 12 deletions

View File

@ -86,18 +86,20 @@
then deps.textOrContent init
else buildInit (optionalAttrs (! isNull init) init);
neovimConfig =
pkgs.neovimUtils.makeNeovimConfig {
inherit customRC;
neovimConfig = pkgs.neovimUtils.makeNeovimConfig {
# inherit customRC;
customLuaRC = customRC;
plugins = extractPlugins plugins;
extraLuaPackages = ps:
(extractLuaPackagesFn plugins ps) ++ (extraLuaPackages ps);
}
// {luaRcContent = customRC;};
params =
removeAttrs neovimConfig ["manifestRc" "neovimRcContent"]
// {inherit viAlias vimAlias;};
pkg = pkgs.wrapNeovimUnstable package params;
inherit viAlias vimAlias;
# autoconfigure = false;
};
# // {luaRcContent = customRC;};
# params =
# removeAttrs neovimConfig ["neovimRcContent"]
# // {inherit viAlias vimAlias;};
pkg = pkgs.wrapNeovimUnstable package neovimConfig;
mkDiffAlias = name:
(flip optionalString) ''
cat <<SH > $out/bin/${name}