mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
flake-modules/new-plugin: tweak template
Update for more modern settingsExample focused approach where we declare fewer options.
This commit is contained in:
parent
5fed6b9363
commit
2c93f77524
1 changed files with 13 additions and 5 deletions
|
@ -12,12 +12,11 @@ lib.nixvim.plugins.mkNeovimPlugin {{
|
||||||
packPathName = "{originalName}";
|
packPathName = "{originalName}";
|
||||||
package = "{package}";
|
package = "{package}";
|
||||||
|
|
||||||
maintainers = [ lib.maintainers.YOUR_NAME ]; # TODO
|
# TODO
|
||||||
|
maintainers = [ lib.maintainers.YOUR_NAME ];
|
||||||
|
|
||||||
settingsOptions = {{
|
settingsExample = {{
|
||||||
exampleOption = lib.nixvim.defaultNullOpts.mkBool false ''
|
exampleOption = true;
|
||||||
Example option for the {name} plugin.
|
|
||||||
'';
|
|
||||||
}};
|
}};
|
||||||
}}
|
}}
|
||||||
"""
|
"""
|
||||||
|
@ -27,6 +26,15 @@ test_nix_template = """{{
|
||||||
empty = {{
|
empty = {{
|
||||||
plugins.{name}.enable = true;
|
plugins.{name}.enable = true;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
|
defaults = {{
|
||||||
|
plugins.{name} = {{
|
||||||
|
enable = true;
|
||||||
|
settings = {{
|
||||||
|
exampleOption = false;
|
||||||
|
}};
|
||||||
|
}};
|
||||||
|
}};
|
||||||
}}
|
}}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue