plugins/neotest-ctest: add neotest-ctest adapter

This commit is contained in:
Frede Braendstrup 2025-08-19 21:34:37 +02:00 committed by Austin Horstman
parent 18a1b5126f
commit 4a7aac699b
3 changed files with 28 additions and 0 deletions

View file

@ -7,6 +7,10 @@
bash = { bash = {
treesitter-parser = "bash"; treesitter-parser = "bash";
}; };
ctest = {
treesitter-parser = "cpp";
settingsSuffix = settingsLua: ".setup(${settingsLua})";
};
dart = { dart = {
treesitter-parser = "dart"; treesitter-parser = "dart";
}; };

View 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
'';
};
};
};
};
};
}

View file

@ -11,6 +11,7 @@
adapters = { adapters = {
bash.enable = true; bash.enable = true;
ctest.enable = true;
dart.enable = true; dart.enable = true;
deno.enable = true; deno.enable = true;
dotnet.enable = true; dotnet.enable = true;