mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-13 10:44:34 +02:00
plugins/TEMPLATE.nix: improve the template
This commit is contained in:
parent
39df3f8355
commit
3543c84062
1 changed files with 15 additions and 4 deletions
|
@ -7,14 +7,25 @@
|
|||
}:
|
||||
helpers.neovim-plugin.mkNeovimPlugin config {
|
||||
name = "my-plugin";
|
||||
originalName = "my-plugin.nvim";
|
||||
originalName = "my-plugin.nvim"; # TODO replace (or remove entirely if it is the same as `name`)
|
||||
defaultPackage = pkgs.vimPlugins.my-plugin-nvim; # TODO replace
|
||||
|
||||
# Optionnally provide an example for the `settings` option.
|
||||
maintainers = [lib.maintainers.MyName]; # TODO replace with your name
|
||||
|
||||
# Optionnally, explicitly declare some options. You don't have to.
|
||||
settingsOptions = {
|
||||
foo = helpers.defaultNullOpts.mkUnsignedInt 97 ''
|
||||
The best birth year.
|
||||
'';
|
||||
|
||||
great_feature = helpers.defaultNullOpts.mkBool false ''
|
||||
Whether to enable the great feature.
|
||||
'';
|
||||
};
|
||||
|
||||
# Optionnally, provide an example for the `settings` option.
|
||||
settingsExample = {
|
||||
foo = 42;
|
||||
bar.__raw = "function() print('hello') end";
|
||||
};
|
||||
|
||||
maintainers = [lib.maintainers.MyName]; # TODO replace with your name
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue