diff --git a/flake/dev/new-plugin.py b/flake/dev/new-plugin.py index 41b40c7d..2e440e7f 100644 --- a/flake/dev/new-plugin.py +++ b/flake/dev/new-plugin.py @@ -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; + }}; + }}; + }}; }} """