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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1 KiB
Nix
Raw Normal View History

{ lib, pkgs, ... }:
2024-03-18 14:43:48 +01:00
{
# TODO: added 2024-09-15
# TODO: Re-enable when upstream builds in darwin sandbox
example = lib.mkIf pkgs.stdenv.isLinux {
2024-03-18 14:43:48 +01:00
plugins = {
treesitter.enable = true;
neotest = {
enable = true;
adapters.foundry = {
enable = true;
settings = {
foundryCommand = "forge test";
foundryConfig = null;
env = { };
cwd.__raw = ''
function ()
return lib.files.match_root_pattern("foundry.toml")
end
'';
filterDir.__raw = ''
function(name)
return (
name ~= "node_modules"
and name ~= "cache"
and name ~= "out"
and name ~= "artifacts"
and name ~= "docs"
and name ~= "doc"
-- and name ~= "lib"
)
end
'';
};
};
};
};
};
}