nix-community.nixvim/plugins/TEMPLATE.nix
2024-09-02 10:35:52 +01:00

32 lines
813 B
Nix

{
lib,
pkgs,
...
}:
let
inherit (lib.nixvim) defaultNullOpts;
in
lib.nixvim.neovim-plugin.mkNeovimPlugin {
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 = defaultNullOpts.mkUnsignedInt 97 ''
The best birth year.
'';
great_feature = 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";
};
}