From 5d8b08918899c1a655a5bfb537f9a19756d565a4 Mon Sep 17 00:00:00 2001 From: Lee Henson Date: Tue, 27 Nov 2018 11:21:37 +0000 Subject: [PATCH] neovim: support withNodeJs option --- modules/programs/neovim.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/modules/programs/neovim.nix b/modules/programs/neovim.nix index 76dcd42d2..304a273b6 100644 --- a/modules/programs/neovim.nix +++ b/modules/programs/neovim.nix @@ -47,6 +47,15 @@ in ''; }; + withNodeJs = mkOption { + type = types.bool; + default = false; + description = '' + Enable node provider. Set to true to + use Node plugins. + ''; + }; + withPython = mkOption { type = types.bool; default = true; @@ -62,7 +71,7 @@ in defaultText = "ps: []"; example = literalExample "(ps: with ps; [ pandas jedi ])"; description = '' - A function in python.withPackages format, which returns a + A function in python.withPackages format, which returns a list of Python 2 packages required for your plugins to work. ''; }; @@ -90,7 +99,7 @@ in defaultText = "ps: []"; example = literalExample "(ps: with ps; [ python-language-server ])"; description = '' - A function in python.withPackages format, which returns a + A function in python.withPackages format, which returns a list of Python 3 packages required for your plugins to work. ''; }; @@ -125,7 +134,7 @@ in inherit (cfg) extraPython3Packages withPython3 extraPythonPackages withPython - withRuby viAlias vimAlias configure; + withNodeJs withRuby viAlias vimAlias configure; }) ]; };