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}";
package = "{package}";
maintainers = [ lib.maintainers.YOUR_NAME ]; # TODO
# TODO
maintainers = [ lib.maintainers.YOUR_NAME ];
settingsOptions = {{
exampleOption = lib.nixvim.defaultNullOpts.mkBool false ''
Example option for the {name} plugin.
'';
settingsExample = {{
exampleOption = true;
}};
}}
"""
@ -27,6 +26,15 @@ test_nix_template = """{{
empty = {{
plugins.{name}.enable = true;
}};
defaults = {{
plugins.{name} = {{
enable = true;
settings = {{
exampleOption = false;
}};
}};
}};
}}
"""