nix-community.nixvim/plugins/by-name/neotest/default.nix
Austin Horstman e0f838b58d
plugins/neotest: options -> settings-options
To ignore file from list-plugins
2025-02-01 22:00:32 -06:00

36 lines
888 B
Nix

{
lib,
...
}:
with lib;
lib.nixvim.plugins.mkNeovimPlugin {
name = "neotest";
maintainers = [ maintainers.GaetanLepage ];
imports = [ ./adapters.nix ];
settingsOptions = (import ./settings-options.nix { inherit lib; }) // {
adapters = mkOption {
type = with types; listOf strLua;
default = [ ];
# NOTE: We hide this option from the documentation as users should use the top-level
# `adapters` option.
# They can still directly append raw lua code to this `settings.adapters` option.
# In this case, they are responsible for explicitly installing the manually added adapters.
visible = false;
};
};
settingsExample = {
quickfix.enabled = false;
output = {
enabled = true;
open_on_run = true;
};
output_panel = {
enabled = true;
open = "botright split | resize 15";
};
};
}