Skip to content

Commit 1b135de

Browse files
author
Haseeb Majid
committed
plugins/neotest: add neotest-golang
1 parent 78abafe commit 1b135de

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

plugins/neotest/adapters-list.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
go = {
2626
treesitter-parser = "go";
2727
};
28+
golang = {
29+
treesitter-parser = "go";
30+
};
2831
gradle = {
2932
treesitter-parser = "kotlin,java";
3033
};

tests/test-sources/plugins/neotest/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
elixir.enable = true;
1818
foundry.enable = true;
1919
go.enable = true;
20+
golang.enable = true;
2021
gradle.enable = true;
2122
# We cannot test neotest-gtest as it tries to create file in the upper directory
2223
# https://github.com/alfaix/neotest-gtest/blob/6e794ac91f4c347e2ea5ddeb23d594f8fc64f2a8/lua/neotest-gtest/utils.lua#L10-L16
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
example = {
3+
plugins = {
4+
treesitter.enable = true;
5+
neotest = {
6+
enable = true;
7+
8+
adapters.golang = {
9+
enable = true;
10+
11+
settings = {
12+
dap_go_enabled = true;
13+
testify_enabled = false;
14+
warn_test_name_dupes = true;
15+
warn_test_not_executed = true;
16+
args = [
17+
"-v"
18+
"-race"
19+
"-count=1"
20+
];
21+
};
22+
};
23+
};
24+
};
25+
};
26+
}

0 commit comments

Comments
 (0)