mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-29 06:18:45 +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
|
@ -7,6 +7,10 @@
|
|||
bash = {
|
||||
treesitter-parser = "bash";
|
||||
};
|
||||
ctest = {
|
||||
treesitter-parser = "cpp";
|
||||
settingsSuffix = settingsLua: ".setup(${settingsLua})";
|
||||
};
|
||||
dart = {
|
||||
treesitter-parser = "dart";
|
||||
};
|
||||
|
|
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
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -11,6 +11,7 @@
|
|||
|
||||
adapters = {
|
||||
bash.enable = true;
|
||||
ctest.enable = true;
|
||||
dart.enable = true;
|
||||
deno.enable = true;
|
||||
dotnet.enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue