nix-community.nixvim/tests/test-sources/plugins/by-name/neotest/elixir.nix

34 lines
823 B
Nix
Raw Normal View History

{ lib, pkgs, ... }:
2023-11-22 09:38:52 +01:00
{
# TODO: added 2024-09-15
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
2023-11-22 09:38:52 +01:00
plugins = {
treesitter.enable = true;
neotest = {
enable = true;
adapters.elixir = {
enable = true;
settings = {
2024-05-05 19:39:35 +02:00
mix_task = [ "my_custom_task" ];
extra_formatters = [
"ExUnit.CLIFormatter"
"ExUnitNotifier"
];
extra_block_identifiers = [ "test_with_mock" ];
args = [ "--trace" ];
2023-11-22 09:38:52 +01:00
post_process_command.__raw = ''
function(cmd)
return vim.tbl_flatten({{"env", "FOO=bar"}, cmd})
end
'';
write_delay = 1000;
};
};
};
};
};
}