mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
plugins/jupytext: drop settings declarations
Signed-off-by: saygo-png <saygo.mail@proton.me>
This commit is contained in:
parent
25223913bb
commit
5da3805559
1 changed files with 0 additions and 38 deletions
|
|
@ -9,44 +9,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
|
||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||
|
||||
settingsOptions = {
|
||||
style = lib.nixvim.defaultNullOpts.mkStr "hydrogen" ''
|
||||
The jupytext style to use.
|
||||
'';
|
||||
|
||||
output_extension = lib.nixvim.defaultNullOpts.mkStr "auto" ''
|
||||
By default, the extension of the plain text file is automatically selected by jupytext.
|
||||
This can be modified by changing the extension from auto to any other file extension supported
|
||||
by Jupytext.
|
||||
This is most useful to those using Quarto or Markdown.
|
||||
Analogously, we can provide a default filetype that will be given to the new buffer by using
|
||||
`force_ft`.
|
||||
Again, this is only really useful to users of Quarto.
|
||||
'';
|
||||
|
||||
force_ft = lib.nixvim.mkNullOrStr ''
|
||||
Default filetype. Don't change unless you know what you are doing.
|
||||
'';
|
||||
|
||||
custom_language_formatting = lib.nixvim.defaultNullOpts.mkAttrsOf lib.types.anything { } ''
|
||||
By default we use the auto mode of jupytext.
|
||||
This will create a script with the correct extension for each language.
|
||||
However, this can be overridden in a per language basis if you want to.
|
||||
For this you can set this option.
|
||||
|
||||
For example, to convert python files to quarto markdown:
|
||||
```nix
|
||||
{
|
||||
python = {
|
||||
extension = "qmd";
|
||||
style = "quarto";
|
||||
force_ft = "quarto";
|
||||
};
|
||||
}
|
||||
```
|
||||
'';
|
||||
};
|
||||
|
||||
settingsExample = {
|
||||
style = "light";
|
||||
output_extension = "auto";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue