From 9bceefd156bfba9802a4678a501e1b7e79b0a9b1 Mon Sep 17 00:00:00 2001 From: derped Date: Sat, 3 May 2025 21:12:04 +0200 Subject: [PATCH] Add missing options to pass to wrapNeovimUnstable. Added options: defaultEdito, viAlias, vimAlias, withNodeJs withRuby, withPython3, extraPython3Packages, extraLuaPackages --- modules/nvim-lazy/default.nix | 60 +++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/modules/nvim-lazy/default.nix b/modules/nvim-lazy/default.nix index 66195ac..f39da74 100644 --- a/modules/nvim-lazy/default.nix +++ b/modules/nvim-lazy/default.nix @@ -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 + "_: [ ]"; + }; }; }