nix-community.nixvim/plugins/TEMPLATE.nix

29 lines
780 B
Nix
Raw Normal View History

{ lib, ... }:
let
inherit (lib.nixvim) defaultNullOpts;
in
2024-09-01 12:52:28 +01:00
lib.nixvim.neovim-plugin.mkNeovimPlugin {
name = "my-plugin";
packPathName = "my-plugin.nvim"; # TODO replace (or remove entirely if it is the same as `name`)
package = "my-plugin-nvim"; # TODO replace
2024-05-05 19:39:35 +02: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.
settingsOptions = {
foo = defaultNullOpts.mkUnsignedInt 97 ''
The best birth year.
'';
great_feature = defaultNullOpts.mkBool false ''
Whether to enable the great feature.
'';
};
2024-03-07 19:44:13 +01:00
# Optionally, provide an example for the `settings` option.
settingsExample = {
foo = 42;
bar.__raw = "function() print('hello') end";
};
}