mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +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
10f899d669
commit
c3b04f76ec
1 changed files with 13 additions and 5 deletions
|
@ -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;
|
||||
}};
|
||||
}};
|
||||
}};
|
||||
}}
|
||||
"""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue