From c3b04f76ecca1694003338bc6e089189f18a3d5e Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Wed, 7 May 2025 22:53:05 -0500 Subject: [PATCH] flake-modules/new-plugin: tweak template Update for more modern settingsExample focused approach where we declare fewer options. --- flake/dev/new-plugin.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) 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; + }}; + }}; + }}; }} """