Skip to content

Commit

Permalink
plugins/neotest/adapters: use lib.mkPackageOption
Browse files Browse the repository at this point in the history
  • Loading branch information
MattSturgeon committed Sep 4, 2024
1 parent 3716545 commit bf1d22e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions plugins/neotest/adapters.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}:
with lib;
let
inherit (lib.nixvim) mkPluginPackageOption mkSettingsOption toLuaObject;
inherit (lib.nixvim) mkSettingsOption toLuaObject;
supportedAdapters = import ./adapters-list.nix;

mkAdapter =
Expand All @@ -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."; };
};
Expand Down

0 comments on commit bf1d22e

Please sign in to comment.