nix-community.nixvim/plugins/neotest/default.nix

42 lines
1,017 B
Nix
Raw Normal View History

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