2024-09-01 09:39:25 +01:00
|
|
|
{ lib, ... }:
|
2024-08-04 10:39:19 +02:00
|
|
|
let
|
|
|
|
inherit (lib.nixvim) defaultNullOpts;
|
|
|
|
in
|
2024-09-01 12:52:28 +01:00
|
|
|
lib.nixvim.neovim-plugin.mkNeovimPlugin {
|
2024-02-12 00:01:55 +01:00
|
|
|
name = "my-plugin";
|
2024-12-13 21:15:47 -06:00
|
|
|
moduleName = "my-plugin"; # TODO replace (or remove entirely if it is the same as `name`)
|
2024-12-13 08:27:14 -06:00
|
|
|
packPathName = "my-plugin.nvim"; # TODO replace (or remove entirely if it is the same as `name`)
|
2024-09-01 09:39:25 +01:00
|
|
|
package = "my-plugin-nvim"; # TODO replace
|
2023-12-30 23:50:12 +01:00
|
|
|
|
2024-03-06 10:42:36 +01:00
|
|
|
maintainers = [ lib.maintainers.MyName ]; # TODO replace with your name
|
|
|
|
|
2024-03-07 19:44:13 +01:00
|
|
|
# Optionally, explicitly declare some options. You don't have to.
|
2024-03-06 10:42:36 +01:00
|
|
|
settingsOptions = {
|
2024-08-04 10:39:19 +02:00
|
|
|
foo = defaultNullOpts.mkUnsignedInt 97 ''
|
2024-03-06 10:42:36 +01:00
|
|
|
The best birth year.
|
|
|
|
'';
|
|
|
|
|
2024-08-04 10:39:19 +02:00
|
|
|
great_feature = defaultNullOpts.mkBool false ''
|
2024-03-06 10:42:36 +01:00
|
|
|
Whether to enable the great feature.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2024-03-07 19:44:13 +01:00
|
|
|
# Optionally, provide an example for the `settings` option.
|
2024-02-12 00:01:55 +01:00
|
|
|
settingsExample = {
|
|
|
|
foo = 42;
|
|
|
|
bar.__raw = "function() print('hello') end";
|
2023-12-30 23:50:12 +01:00
|
|
|
};
|
|
|
|
}
|