From 5241c9f83ea1bcec9879585b7bd2da572924f5e1 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 4 Aug 2024 10:39:19 +0200 Subject: [PATCH] plugins/TEMPLATE: drop helpers and adopt new style --- plugins/TEMPLATE.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/TEMPLATE.nix b/plugins/TEMPLATE.nix index 5cfa2b7f..8b932e3a 100644 --- a/plugins/TEMPLATE.nix +++ b/plugins/TEMPLATE.nix @@ -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 @@ -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. ''; };