flake-modules/new-plugin: tweak template

Update for more modern settingsExample focused approach where we declare
fewer options.
This commit is contained in:
Austin Horstman 2025-05-07 22:53:05 -05:00
parent 10f899d669
commit c3b04f76ec

View file

@ -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;
}};
}};
}};
}} }}
""" """