Skip to content

Commit

Permalink
neovim: drop python2 support
Browse files Browse the repository at this point in the history
Nixpkgs did the same in NixOS/nixpkgs#121339.
  • Loading branch information
dotlambda committed May 3, 2021
1 parent 225bf27 commit 9f0953c
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions modules/programs/neovim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ let

cfg = config.programs.neovim;

extraPythonPackageType = mkOptionType {
name = "extra-python-packages";
description = "python packages in python.withPackages format";
check = with types;
(x: if isFunction x then isList (x pkgs.pythonPackages) else false);
merge = mergeOneOption;
};

extraPython3PackageType = mkOptionType {
name = "extra-python3-packages";
description = "python3 packages in python.withPackages format";
Expand Down Expand Up @@ -104,26 +96,6 @@ in {
'';
};

withPython = mkOption {
type = types.bool;
default = true;
description = ''
Enable Python 2 provider. Set to <literal>true</literal> to
use Python 2 plugins.
'';
};

extraPythonPackages = mkOption {
type = with types; either extraPythonPackageType (listOf package);
default = (_: [ ]);
defaultText = "ps: []";
example = literalExample "(ps: with ps; [ pandas jedi ])";
description = ''
A function in python.withPackages format, which returns a
list of Python 2 packages required for your plugins to work.
'';
};

withRuby = mkOption {
type = types.nullOr types.bool;
default = true;
Expand Down Expand Up @@ -245,7 +217,7 @@ in {
config = let
neovimConfig = pkgs.neovimUtils.makeNeovimConfig {
inherit (cfg)
extraPython3Packages withPython3 extraPythonPackages withPython
extraPython3Packages withPython3
withNodeJs withRuby viAlias vimAlias;
configure = cfg.configure // moduleConfigure;
plugins = cfg.plugins;
Expand Down

0 comments on commit 9f0953c

Please sign in to comment.