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:
parent
fc66d83c77
commit
02da36ced8
2 changed files with 15 additions and 18 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
helpers,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib;
|
with lib;
|
||||||
|
|
@ -62,22 +61,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
extraOptions = {
|
dependencies = [ "jupytext" ];
|
||||||
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; };
|
|
||||||
|
|
||||||
|
inherit (import ./deprecations.nix lib) imports;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
13
plugins/by-name/jupytext/deprecations.nix
Normal file
13
plugins/by-name/jupytext/deprecations.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
lib: {
|
||||||
|
imports = [
|
||||||
|
# TODO: introduced 2025-10-25: remove after 26.05
|
||||||
|
(lib.mkRenamedOptionModule
|
||||||
|
[
|
||||||
|
"plugins"
|
||||||
|
"jupytext"
|
||||||
|
"python3Dependencies"
|
||||||
|
]
|
||||||
|
[ "extraPython3Packages" ]
|
||||||
|
)
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue