Skip to content

Commit

Permalink
plugins/TEMPLATE: drop helpers and adopt new style
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Sep 1, 2024
1 parent caefb26 commit 5241c9f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions plugins/TEMPLATE.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
lib,
helpers,
config,
pkgs,
...
}:
helpers.neovim-plugin.mkNeovimPlugin config {
let
inherit (lib.nixvim) defaultNullOpts;
in
lib.nixvim.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
Expand All @@ -14,11 +16,11 @@ helpers.neovim-plugin.mkNeovimPlugin config {

# Optionally, explicitly declare some options. You don't have to.
settingsOptions = {
foo = helpers.defaultNullOpts.mkUnsignedInt 97 ''
foo = defaultNullOpts.mkUnsignedInt 97 ''
The best birth year.
'';

great_feature = helpers.defaultNullOpts.mkBool false ''
great_feature = defaultNullOpts.mkBool false ''
Whether to enable the great feature.
'';
};
Expand Down

0 comments on commit 5241c9f

Please sign in to comment.