From bf1d22e65cc96ff2afe741e8a1b4288c34fce06b Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Wed, 4 Sep 2024 21:50:03 +0100 Subject: [PATCH] plugins/neotest/adapters: use `lib.mkPackageOption` --- plugins/neotest/adapters.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/neotest/adapters.nix b/plugins/neotest/adapters.nix index ec386ea629..5aa397b3a3 100644 --- a/plugins/neotest/adapters.nix +++ b/plugins/neotest/adapters.nix @@ -6,7 +6,7 @@ }: with lib; let - inherit (lib.nixvim) mkPluginPackageOption mkSettingsOption toLuaObject; + inherit (lib.nixvim) mkSettingsOption toLuaObject; supportedAdapters = import ./adapters-list.nix; mkAdapter = @@ -20,7 +20,12 @@ let options.plugins.neotest.adapters.${name} = { enable = mkEnableOption name; - package = mkPluginPackageOption name pkgs.vimPlugins.${packageName}; + package = lib.mkPackageOption pkgs name { + default = [ + "vimPlugins" + packageName + ]; + }; settings = mkSettingsOption { description = "settings for the `${name}` adapter."; }; };