mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-01 12:54:30 +02:00
plugins/neotest: add neotest-gtest
This commit is contained in:
parent
4012cdbbf1
commit
d248bf587c
3 changed files with 62 additions and 0 deletions
|
@ -28,6 +28,9 @@
|
|||
gradle = {
|
||||
treesitter-parser = "kotlin,java";
|
||||
};
|
||||
gtest = {
|
||||
treesitter-parser = "cpp";
|
||||
};
|
||||
hardhat = {
|
||||
treesitter-parser = "javascript";
|
||||
packageName = "hardhat-nvim";
|
||||
|
|
|
@ -18,6 +18,9 @@
|
|||
foundry.enable = true;
|
||||
go.enable = true;
|
||||
gradle.enable = true;
|
||||
# We cannot test neotest-gtest as it tries to create file in the upper directory
|
||||
# https://github.com/alfaix/neotest-gtest/blob/6e794ac91f4c347e2ea5ddeb23d594f8fc64f2a8/lua/neotest-gtest/utils.lua#L10-L16
|
||||
gtest.enable = false;
|
||||
hardhat.enable = true;
|
||||
haskell.enable = true;
|
||||
java.enable = true;
|
||||
|
|
56
tests/test-sources/plugins/neotest/gtest.nix
Normal file
56
tests/test-sources/plugins/neotest/gtest.nix
Normal file
|
@ -0,0 +1,56 @@
|
|||
{
|
||||
example = {
|
||||
# We cannot test neotest-gtest as it tries to create file in the upper directory
|
||||
# https://github.com/alfaix/neotest-gtest/blob/6e794ac91f4c347e2ea5ddeb23d594f8fc64f2a8/lua/neotest-gtest/utils.lua#L10-L16
|
||||
tests.dontRun = true;
|
||||
|
||||
plugins = {
|
||||
treesitter.enable = true;
|
||||
neotest = {
|
||||
enable = true;
|
||||
|
||||
adapters.gtest = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
root.__raw = ''
|
||||
require("neotest.lib").files.match_root_pattern(
|
||||
"compile_commands.json",
|
||||
"compile_flags.txt",
|
||||
"WORKSPACE",
|
||||
".clangd",
|
||||
"init.lua",
|
||||
"init.vim",
|
||||
"build",
|
||||
".git"
|
||||
)
|
||||
'';
|
||||
debug_adapter = "codelldb";
|
||||
is_test_file.__raw = ''
|
||||
function(file)
|
||||
end
|
||||
'';
|
||||
history_size = 3;
|
||||
parsing_throttle_ms = 10;
|
||||
mappings = {configure = null;};
|
||||
summary_view = {
|
||||
header_length = 80;
|
||||
shell_palette = {
|
||||
passed = "\27[32m";
|
||||
skipped = "\27[33m";
|
||||
failed = "\27[31m";
|
||||
stop = "\27[0m";
|
||||
bold = "\27[1m";
|
||||
};
|
||||
};
|
||||
extra_args = [];
|
||||
filter_dir.__raw = ''
|
||||
function(name, rel_path, root)
|
||||
end
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue