Skip to content

Commit 2522391

Browse files
saygo-pngMattSturgeon
authored andcommitted
plugins/jupytext: remove with lib and helpers use
Signed-off-by: saygo-png <[email protected]>
1 parent 02da36c commit 2522391

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

plugins/by-name/jupytext/default.nix

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,19 @@
22
lib,
33
...
44
}:
5-
with lib;
65
lib.nixvim.plugins.mkNeovimPlugin {
76
name = "jupytext";
87
package = "jupytext-nvim";
98
description = "Jupyter notebooks on Neovim powered by Jupytext.";
109

11-
maintainers = [ maintainers.GaetanLepage ];
10+
maintainers = [ lib.maintainers.GaetanLepage ];
1211

1312
settingsOptions = {
14-
style = helpers.defaultNullOpts.mkStr "hydrogen" ''
13+
style = lib.nixvim.defaultNullOpts.mkStr "hydrogen" ''
1514
The jupytext style to use.
1615
'';
1716

18-
output_extension = helpers.defaultNullOpts.mkStr "auto" ''
17+
output_extension = lib.nixvim.defaultNullOpts.mkStr "auto" ''
1918
By default, the extension of the plain text file is automatically selected by jupytext.
2019
This can be modified by changing the extension from auto to any other file extension supported
2120
by Jupytext.
@@ -25,11 +24,11 @@ lib.nixvim.plugins.mkNeovimPlugin {
2524
Again, this is only really useful to users of Quarto.
2625
'';
2726

28-
force_ft = helpers.mkNullOrStr ''
27+
force_ft = lib.nixvim.mkNullOrStr ''
2928
Default filetype. Don't change unless you know what you are doing.
3029
'';
3130

32-
custom_language_formatting = helpers.defaultNullOpts.mkAttrsOf types.anything { } ''
31+
custom_language_formatting = lib.nixvim.defaultNullOpts.mkAttrsOf lib.types.anything { } ''
3332
By default we use the auto mode of jupytext.
3433
This will create a script with the correct extension for each language.
3534
However, this can be overridden in a per language basis if you want to.

0 commit comments

Comments
 (0)