2023-11-22 09:38:52 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib;
|
2024-08-21 23:46:46 -05:00
|
|
|
let
|
|
|
|
inherit (lib.nixvim) mkRaw;
|
|
|
|
in
|
2024-09-01 12:52:28 +01:00
|
|
|
lib.nixvim.neovim-plugin.mkNeovimPlugin {
|
2023-11-22 09:38:52 +01:00
|
|
|
name = "neotest";
|
|
|
|
defaultPackage = pkgs.vimPlugins.neotest;
|
|
|
|
|
|
|
|
maintainers = [ maintainers.GaetanLepage ];
|
|
|
|
|
|
|
|
imports = [ ./adapters.nix ];
|
|
|
|
|
2024-08-21 23:46:46 -05:00
|
|
|
settingsOptions = (import ./options.nix { inherit lib; }) // {
|
2023-11-22 09:38:52 +01:00
|
|
|
adapters = mkOption {
|
2024-08-21 23:46:46 -05:00
|
|
|
type = with types; listOf strLua;
|
2023-11-22 09:38:52 +01:00
|
|
|
default = [ ];
|
2024-08-21 23:46:46 -05:00
|
|
|
apply = map mkRaw;
|
2024-03-19 10:11:49 +01:00
|
|
|
# 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;
|
2023-11-22 09:38:52 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
settingsExample = {
|
|
|
|
quickfix.enabled = false;
|
|
|
|
output = {
|
|
|
|
enabled = true;
|
|
|
|
open_on_run = true;
|
|
|
|
};
|
|
|
|
output_panel = {
|
|
|
|
enabled = true;
|
|
|
|
open = "botright split | resize 15";
|
|
|
|
};
|
2024-05-05 19:39:35 +02:00
|
|
|
};
|
2023-11-22 09:38:52 +01:00
|
|
|
}
|