From d29934b85909e5df96bd95dd2b3139bd4232bf8e Mon Sep 17 00:00:00 2001 From: Frothy <76622149+FrothyMarrow@users.noreply.github.com> Date: Thu, 29 Feb 2024 15:15:47 -0500 Subject: [PATCH] wrapper: migrate to `makeNeovimUnstable` wrapper --- modules/default.nix | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/modules/default.nix b/modules/default.nix index c9703b9..8ecdaef 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -6,8 +6,9 @@ inputs: { extraSpecialArgs ? {}, }: let inherit (builtins) map filter isString toString getAttr; - inherit (pkgs) wrapNeovim vimPlugins; + inherit (pkgs) wrapNeovimUnstable vimPlugins; inherit (pkgs.vimUtils) buildVimPlugin; + inherit (pkgs.neovimUtils) makeNeovimConfig; extendedLib = import ../lib/stdlib-extended.nix lib; @@ -57,21 +58,22 @@ inputs: { (f: f != null) plugins); - neovim = wrapNeovim vimOptions.package { + plugins = + (buildConfigPlugins vimOptions.startPlugins) + ++ (map (package: { + plugin = package; + optional = false; + }) + (buildConfigPlugins + vimOptions.optPlugins)); + + neovim = wrapNeovimUnstable vimOptions.package (makeNeovimConfig { inherit (vimOptions) viAlias; inherit (vimOptions) vimAlias; - inherit extraLuaPackages; - - configure = { - customRC = vimOptions.builtConfigRC; - - packages.myVimPackage = { - start = buildConfigPlugins vimOptions.startPlugins; - opt = buildConfigPlugins vimOptions.optPlugins; - }; - }; - }; + inherit plugins; + customRC = vimOptions.builtConfigRC; + }); in { inherit (module) options config; inherit (module._module.args) pkgs;