mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
31 lines
807 B
Nix
31 lines
807 B
Nix
{
|
|
lib,
|
|
helpers,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
helpers.neovim-plugin.mkNeovimPlugin config {
|
|
name = "my-plugin";
|
|
originalName = "my-plugin.nvim"; # TODO replace (or remove entirely if it is the same as `name`)
|
|
defaultPackage = pkgs.vimPlugins.my-plugin-nvim; # TODO replace
|
|
|
|
maintainers = [ lib.maintainers.MyName ]; # TODO replace with your name
|
|
|
|
# Optionally, 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.
|
|
'';
|
|
};
|
|
|
|
# Optionally, provide an example for the `settings` option.
|
|
settingsExample = {
|
|
foo = 42;
|
|
bar.__raw = "function() print('hello') end";
|
|
};
|
|
}
|