plugins/neotest: move to by-name

This commit is contained in:
Austin Horstman 2024-09-09 13:00:29 -05:00
parent 0f83298f2c
commit 9d323f3ec7
No known key found for this signature in database
26 changed files with 0 additions and 2 deletions

View file

@ -0,0 +1,40 @@
{
lib,
...
}:
with lib;
let
inherit (lib.nixvim) mkRaw;
in
lib.nixvim.neovim-plugin.mkNeovimPlugin {
name = "neotest";
maintainers = [ maintainers.GaetanLepage ];
imports = [ ./adapters.nix ];
settingsOptions = (import ./options.nix { inherit lib; }) // {
adapters = mkOption {
type = with types; listOf strLua;
default = [ ];
apply = map mkRaw;
# 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";
};
};
}