Skip to content

Commit 5241c9f

Browse files
committed
plugins/TEMPLATE: drop helpers and adopt new style
1 parent caefb26 commit 5241c9f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

plugins/TEMPLATE.nix

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
22
lib,
3-
helpers,
43
config,
54
pkgs,
65
...
76
}:
8-
helpers.neovim-plugin.mkNeovimPlugin config {
7+
let
8+
inherit (lib.nixvim) defaultNullOpts;
9+
in
10+
lib.nixvim.neovim-plugin.mkNeovimPlugin config {
911
name = "my-plugin";
1012
originalName = "my-plugin.nvim"; # TODO replace (or remove entirely if it is the same as `name`)
1113
defaultPackage = pkgs.vimPlugins.my-plugin-nvim; # TODO replace
@@ -14,11 +16,11 @@ helpers.neovim-plugin.mkNeovimPlugin config {
1416

1517
# Optionally, explicitly declare some options. You don't have to.
1618
settingsOptions = {
17-
foo = helpers.defaultNullOpts.mkUnsignedInt 97 ''
19+
foo = defaultNullOpts.mkUnsignedInt 97 ''
1820
The best birth year.
1921
'';
2022

21-
great_feature = helpers.defaultNullOpts.mkBool false ''
23+
great_feature = defaultNullOpts.mkBool false ''
2224
Whether to enable the great feature.
2325
'';
2426
};

0 commit comments

Comments
 (0)