Added more editor features to support Golang, sql and git
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
return {
|
||||
name = "go test",
|
||||
builder = function()
|
||||
return {
|
||||
cmd = { "go", "test", "./..." },
|
||||
}
|
||||
end,
|
||||
}
|
||||
15
lua/overseer/template/user/go_bench.lua
Normal file
15
lua/overseer/template/user/go_bench.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
return {
|
||||
name = "go: benchmarks",
|
||||
desc = "Run Go benchmarks with memory stats",
|
||||
builder = function()
|
||||
return {
|
||||
cmd = { "go", "test" },
|
||||
args = { "-bench=.", "-benchmem", "./..." },
|
||||
components = {
|
||||
"default",
|
||||
"on_output_quickfix",
|
||||
{ "on_complete_notify", statuses = { "SUCCESS", "FAILURE" } },
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
20
lua/overseer/template/user/go_cpu_profile.lua
Normal file
20
lua/overseer/template/user/go_cpu_profile.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
return {
|
||||
name = "go: cpu profile",
|
||||
desc = "Generate CPU profile (cpu.out)",
|
||||
builder = function()
|
||||
return {
|
||||
cmd = { "go", "test" },
|
||||
args = {
|
||||
"-run=^$",
|
||||
"-bench=.",
|
||||
"-cpuprofile=cpu.out",
|
||||
"./...",
|
||||
},
|
||||
components = {
|
||||
"default",
|
||||
"on_output_quickfix",
|
||||
{ "on_complete_notify", statuses = { "SUCCESS" } },
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
20
lua/overseer/template/user/go_mem_profile.lua
Normal file
20
lua/overseer/template/user/go_mem_profile.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
return {
|
||||
name = "go: mem profile",
|
||||
desc = "Generate heap profile (mem.out)",
|
||||
builder = function()
|
||||
return {
|
||||
cmd = { "go", "test" },
|
||||
args = {
|
||||
"-run=^$",
|
||||
"-bench=.",
|
||||
"-memprofile=mem.out",
|
||||
"./...",
|
||||
},
|
||||
components = {
|
||||
"default",
|
||||
"on_output_quickfix",
|
||||
{ "on_complete_notify", statuses = { "SUCCESS" } },
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
10
lua/overseer/template/user/go_test.lua
Normal file
10
lua/overseer/template/user/go_test.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
return {
|
||||
name = "go test",
|
||||
desc = "Run all tests",
|
||||
builder = function()
|
||||
return {
|
||||
cmd = { "go", "test" },
|
||||
args = { "./..." },
|
||||
}
|
||||
end,
|
||||
}
|
||||
20
lua/overseer/template/user/go_trace.lua
Normal file
20
lua/overseer/template/user/go_trace.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
return {
|
||||
name = "go: trace",
|
||||
desc = "Generate execution trace (trace.out)",
|
||||
builder = function()
|
||||
return {
|
||||
cmd = { "go", "test" },
|
||||
args = {
|
||||
"-run=^$",
|
||||
"-bench=.",
|
||||
"-trace=trace.out",
|
||||
"./...",
|
||||
},
|
||||
components = {
|
||||
"default",
|
||||
"on_output_quickfix",
|
||||
{ "on_complete_notify", statuses = { "SUCCESS" } },
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user