summary refs log tree commit diff
diff options
context:
space:
mode:
authorThiago Kenji Okada <thiagokokada@gmail.com>2021-11-06 10:29:01 -0300
committerMatthieu Coudron <teto@users.noreply.github.com>2021-11-07 19:40:07 +0100
commitb142bd35d508ce0cfb0abc9814ebb1cc07704d4f (patch)
tree2a7bb2c30533c126a41dbeb875b3c46cb7a11a3f
parent3121d7ea55c3af05e34c248e94bec70f3fca568e (diff)
downloadnixpkgs-b142bd35d508ce0cfb0abc9814ebb1cc07704d4f.tar
nixpkgs-b142bd35d508ce0cfb0abc9814ebb1cc07704d4f.tar.gz
nixpkgs-b142bd35d508ce0cfb0abc9814ebb1cc07704d4f.tar.bz2
nixpkgs-b142bd35d508ce0cfb0abc9814ebb1cc07704d4f.tar.lz
nixpkgs-b142bd35d508ce0cfb0abc9814ebb1cc07704d4f.tar.xz
nixpkgs-b142bd35d508ce0cfb0abc9814ebb1cc07704d4f.tar.zst
nixpkgs-b142bd35d508ce0cfb0abc9814ebb1cc07704d4f.zip
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`.
-rw-r--r--nixos/modules/programs/neovim.nix16
1 files changed, 14 insertions, 2 deletions
diff --git a/nixos/modules/programs/neovim.nix b/nixos/modules/programs/neovim.nix
index 26d75caeb8d..4649662542d 100644
--- a/nixos/modules/programs/neovim.nix
+++ b/nixos/modules/programs/neovim.nix
@@ -41,7 +41,19 @@ in {
     withRuby = mkOption {
       type = types.bool;
       default = true;
-      description = "Enable ruby provider.";
+      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 {
@@ -142,7 +154,7 @@ in {
     environment.variables.EDITOR = mkIf cfg.defaultEditor (mkOverride 900 "nvim");
 
     programs.neovim.finalPackage = pkgs.wrapNeovim cfg.package {
-      inherit (cfg) viAlias vimAlias;
+      inherit (cfg) viAlias vimAlias withPython3 withNodeJs withRuby;
       configure = cfg.configure // {
 
         customRC = (cfg.configure.customRC or "") + ''