1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 19:46:06 +01:00

plugins/jupytext: move jupytext to PATH

Signed-off-by: saygo-png <saygo.mail@proton.me>
This commit is contained in:
saygo-png 2025-10-25 10:41:08 +02:00 committed by Matt Sturgeon
parent fc66d83c77
commit 02da36ced8
2 changed files with 15 additions and 18 deletions

View file

@ -1,6 +1,5 @@
{
lib,
helpers,
...
}:
with lib;
@ -62,22 +61,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
};
};
extraOptions = {
python3Dependencies = mkOption {
type = with types; functionTo (listOf package);
default =
p: with p; [
jupytext
];
defaultText = literalExpression ''
p: with p; [
jupytext
]
'';
description = "Python packages to add to the `PYTHONPATH` of neovim.";
};
};
extraConfig = cfg: { extraPython3Packages = cfg.python3Dependencies; };
dependencies = [ "jupytext" ];
inherit (import ./deprecations.nix lib) imports;
}

View file

@ -0,0 +1,13 @@
lib: {
imports = [
# TODO: introduced 2025-10-25: remove after 26.05
(lib.mkRenamedOptionModule
[
"plugins"
"jupytext"
"python3Dependencies"
]
[ "extraPython3Packages" ]
)
];
}