mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 00:48:58 +02:00
plugins/neotest: add neotest-golang
This commit is contained in:
parent
78abafe280
commit
1b135dedc4
3 changed files with 30 additions and 0 deletions
|
@ -25,6 +25,9 @@
|
|||
go = {
|
||||
treesitter-parser = "go";
|
||||
};
|
||||
golang = {
|
||||
treesitter-parser = "go";
|
||||
};
|
||||
gradle = {
|
||||
treesitter-parser = "kotlin,java";
|
||||
};
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
elixir.enable = true;
|
||||
foundry.enable = true;
|
||||
go.enable = true;
|
||||
golang.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
|
||||
|
|
26
tests/test-sources/plugins/neotest/golang.nix
Normal file
26
tests/test-sources/plugins/neotest/golang.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
example = {
|
||||
plugins = {
|
||||
treesitter.enable = true;
|
||||
neotest = {
|
||||
enable = true;
|
||||
|
||||
adapters.golang = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
dap_go_enabled = true;
|
||||
testify_enabled = false;
|
||||
warn_test_name_dupes = true;
|
||||
warn_test_not_executed = true;
|
||||
args = [
|
||||
"-v"
|
||||
"-race"
|
||||
"-count=1"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue