mirror of
https://github.com/nix-community/nixvim.git
synced 2025-09-01 08:16:40 +02:00
plugins/neotest-ctest: add neotest-ctest adapter
This commit is contained in:
parent
18a1b5126f
commit
4a7aac699b
3 changed files with 28 additions and 0 deletions
23
tests/test-sources/plugins/by-name/neotest/ctest.nix
Normal file
23
tests/test-sources/plugins/by-name/neotest/ctest.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
example = {
|
||||
plugins = {
|
||||
treesitter.enable = true;
|
||||
neotest = {
|
||||
enable = true;
|
||||
|
||||
adapters.ctest = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
is_test_file.__raw = ''
|
||||
function(file_path)
|
||||
-- check if path has test in it
|
||||
return string.match(file_path, "test") ~= nil
|
||||
end
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue