plugins/neotest: add neotest-golang

This commit is contained in:
Haseeb Majid 2024-08-08 13:02:54 +01:00
parent 78abafe280
commit 1b135dedc4
No known key found for this signature in database
3 changed files with 30 additions and 0 deletions

View file

@ -25,6 +25,9 @@
go = {
treesitter-parser = "go";
};
golang = {
treesitter-parser = "go";
};
gradle = {
treesitter-parser = "kotlin,java";
};

View file

@ -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

View 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"
];
};
};
};
};
};
}