Add missing options to pass to wrapNeovimUnstable.

Added options: defaultEdito, viAlias, vimAlias, withNodeJs withRuby, withPython3, extraPython3Packages, extraLuaPackages
This commit is contained in:
Kevin Baensch 2025-05-03 21:12:04 +02:00
parent ec33a55a88
commit 9bceefd156
Signed by: derped
GPG key ID: C0F1D326C7626543

View file

@ -204,6 +204,13 @@ in
default = "neovim-unwrapped";
};
};
defaultEditor = mkOption {
type = types.bool;
default = false;
description = ''
Sets `EDITOR` environment variable to `nvim`.
'';
};
vPlug = mkOption {
type = with types; lazyAttrsOf anything;
default = pkgs.vimPlugins;
@ -229,5 +236,58 @@ in
default = [ ];
description = ''List of plugins to be installed with neovim.'';
};
viAlias = mkOption {
type = types.bool;
default = false;
description = ''
Add `vi` symlink to build output.
'';
};
vimAlias = mkOption {
type = types.bool;
default = false;
description = ''
Add `vim` symlink to build output.
'';
};
withNodeJs = mkOption {
type = types.bool;
default = false;
description = ''
Enable node support.
'';
};
withRuby = mkOption {
type = types.nullOr types.bool;
default = true;
description = ''
Enable ruby support.
'';
};
withPython3 = mkOption {
type = types.bool;
default = true;
description = ''
Enable Python 3 support.
'';
};
extraPython3Packages = mkOption {
type = with types; functionTo (listOf package);
default = _: [ ];
defaultText =
lib.literalExpression # nix
"_: [ ]";
description = ''
The Python 3 packages to add to the neovim environment.
Same usage as python3.withPackages.
'';
};
extraLuaPackages = mkOption {
type = with types; functionTo (listOf package);
default = _: [ ];
defaultText =
lib.literalExpression # nix
"_: [ ]";
};
};
}