neovim: refactor to get rid of makeNeovimConfig

This commit is contained in:
teto
2025-12-28 17:23:22 +01:00
committed by Matthieu Coudron
parent 3613abcbd7
commit 398bc87bc8

View File

@@ -426,7 +426,10 @@ in
(concatMapStringsSep ";" luaPackages.getLuaPath resolvedExtraLuaPackages)
];
neovimConfig = pkgs.neovimUtils.makeNeovimConfig {
wrappedNeovim' = pkgs.wrapNeovimUnstable cfg.package {
withNodeJs = cfg.withNodeJs || cfg.coc.enable;
plugins = map suppressNotVimlConfig pluginsNormalized;
inherit (cfg)
extraPython3Packages
withPython3
@@ -434,34 +437,19 @@ in
withPerl
viAlias
vimAlias
;
withNodeJs = cfg.withNodeJs || cfg.coc.enable;
plugins = map suppressNotVimlConfig pluginsNormalized;
customRC = cfg.extraConfig;
};
wrappedNeovim' = pkgs.wrapNeovimUnstable cfg.package (
neovimConfig
// {
inherit (cfg)
extraName
autowrapRuntimeDeps
waylandSupport
withNodeJs
;
neovimRcContent = cfg.extraConfig;
wrapperArgs =
neovimConfig.wrapperArgs
++ cfg.extraWrapperArgs
++ extraMakeWrapperArgs
++ extraMakeWrapperLuaCArgs
++ extraMakeWrapperLuaArgs;
cfg.extraWrapperArgs ++ extraMakeWrapperArgs ++ extraMakeWrapperLuaCArgs ++ extraMakeWrapperLuaArgs;
wrapRc = false;
}
);
};
in
{
programs.neovim = {
generatedConfigViml = neovimConfig.neovimRcContent;
generatedConfigViml = cfg.extraConfig;
generatedConfigs =
let