nixos/neovim: fix withRuby, add with{Python3,NodeJs}

`withRuby` was declared but not referenced before, this commit fixes
this issue.

It also adds support for `withPython3` and `withNodeJs`.

Changed files
+14 -2
nixos
modules
programs
+14 -2
nixos/modules/programs/neovim.nix
···
withRuby = mkOption {
type = types.bool;
default = true;
-
description = "Enable ruby provider.";
};
configure = mkOption {
···
environment.variables.EDITOR = mkIf cfg.defaultEditor (mkOverride 900 "nvim");
programs.neovim.finalPackage = pkgs.wrapNeovim cfg.package {
-
inherit (cfg) viAlias vimAlias;
configure = cfg.configure // {
customRC = (cfg.configure.customRC or "") + ''
···
withRuby = mkOption {
type = types.bool;
default = true;
+
description = "Enable Ruby provider.";
+
};
+
+
withPython3 = mkOption {
+
type = types.bool;
+
default = true;
+
description = "Enable Python 3 provider.";
+
};
+
+
withNodeJs = mkOption {
+
type = types.bool;
+
default = false;
+
description = "Enable Node provider.";
};
configure = mkOption {
···
environment.variables.EDITOR = mkIf cfg.defaultEditor (mkOverride 900 "nvim");
programs.neovim.finalPackage = pkgs.wrapNeovim cfg.package {
+
inherit (cfg) viAlias vimAlias withPython3 withNodeJs withRuby;
configure = cfg.configure // {
customRC = (cfg.configure.customRC or "") + ''