neovimUtils: remove the compatibility layer introduced in 2018

removed compatFun, we need to make the code clearer
This commit is contained in:
Matthieu Coudron 2022-08-09 14:17:19 +02:00
parent b4d8662c4a
commit cc0ff183c6

View file

@ -154,10 +154,6 @@ let
, extraName ? "" , extraName ? ""
}: }:
let let
/* for compatibility with passing extraPythonPackages as a list; added 2018-07-11 */
compatFun = funOrList: (if builtins.isList funOrList then
(_: lib.warn "passing a list as extraPythonPackages to the neovim wrapper is deprecated, pass a function as to python.withPackages instead" funOrList)
else funOrList);
# we convert from the old configure.format to # we convert from the old configure.format to
plugins = if builtins.hasAttr "plug" configure then plugins = if builtins.hasAttr "plug" configure then
@ -169,7 +165,7 @@ let
res = makeNeovimConfig { res = makeNeovimConfig {
inherit withPython3; inherit withPython3;
extraPython3Packages = compatFun extraPython3Packages; inherit extraPython3Packages;
inherit extraLuaPackages; inherit extraLuaPackages;
inherit withNodeJs withRuby viAlias vimAlias; inherit withNodeJs withRuby viAlias vimAlias;
customRC = configure.customRC or ""; customRC = configure.customRC or "";