nix-community.nixvim/plugins/neotest/default.nix
2024-09-02 10:35:52 +01:00

42 lines
999 B
Nix

{
lib,
pkgs,
...
}:
with lib;
let
inherit (lib.nixvim) mkRaw;
in
lib.nixvim.neovim-plugin.mkNeovimPlugin {
name = "neotest";
defaultPackage = pkgs.vimPlugins.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";
};
};
}