refactor: simplify configuration creation
parent
99b4355a1a
commit
27c8d275c5
|
|
@ -86,18 +86,20 @@
|
|||
then deps.textOrContent init
|
||||
else buildInit (optionalAttrs (! isNull init) init);
|
||||
|
||||
neovimConfig =
|
||||
pkgs.neovimUtils.makeNeovimConfig {
|
||||
inherit 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;
|
||||
neovimConfig = pkgs.neovimUtils.makeNeovimConfig {
|
||||
# inherit customRC;
|
||||
customLuaRC = customRC;
|
||||
plugins = extractPlugins plugins;
|
||||
extraLuaPackages = ps:
|
||||
(extractLuaPackagesFn plugins ps) ++ (extraLuaPackages ps);
|
||||
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}
|
||||
|
|
|
|||
Loading…
Reference in New Issue