mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-23 05:40:44 +00:00
wrapper: migrate to makeNeovimUnstable
wrapper
This commit is contained in:
parent
685a6eaade
commit
d29934b859
1 changed files with 15 additions and 13 deletions
|
@ -6,8 +6,9 @@ inputs: {
|
||||||
extraSpecialArgs ? {},
|
extraSpecialArgs ? {},
|
||||||
}: let
|
}: let
|
||||||
inherit (builtins) map filter isString toString getAttr;
|
inherit (builtins) map filter isString toString getAttr;
|
||||||
inherit (pkgs) wrapNeovim vimPlugins;
|
inherit (pkgs) wrapNeovimUnstable vimPlugins;
|
||||||
inherit (pkgs.vimUtils) buildVimPlugin;
|
inherit (pkgs.vimUtils) buildVimPlugin;
|
||||||
|
inherit (pkgs.neovimUtils) makeNeovimConfig;
|
||||||
|
|
||||||
extendedLib = import ../lib/stdlib-extended.nix lib;
|
extendedLib = import ../lib/stdlib-extended.nix lib;
|
||||||
|
|
||||||
|
@ -57,21 +58,22 @@ inputs: {
|
||||||
(f: f != null)
|
(f: f != null)
|
||||||
plugins);
|
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) viAlias;
|
||||||
inherit (vimOptions) vimAlias;
|
inherit (vimOptions) vimAlias;
|
||||||
|
|
||||||
inherit extraLuaPackages;
|
inherit extraLuaPackages;
|
||||||
|
inherit plugins;
|
||||||
configure = {
|
|
||||||
customRC = vimOptions.builtConfigRC;
|
customRC = vimOptions.builtConfigRC;
|
||||||
|
});
|
||||||
packages.myVimPackage = {
|
|
||||||
start = buildConfigPlugins vimOptions.startPlugins;
|
|
||||||
opt = buildConfigPlugins vimOptions.optPlugins;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in {
|
in {
|
||||||
inherit (module) options config;
|
inherit (module) options config;
|
||||||
inherit (module._module.args) pkgs;
|
inherit (module._module.args) pkgs;
|
||||||
|
|
Loading…
Reference in a new issue