mirror of
https://github.com/kristoferssolo/runner.nvim.git
synced 2025-10-21 19:50:34 +00:00
11 lines
293 B
Lua
11 lines
293 B
Lua
local helpers = require('runner.handlers.helpers')
|
|
|
|
return function(buffer)
|
|
local handlers = {
|
|
['Run'] = helpers.shell_handler('go run .'),
|
|
['Test'] = helpers.shell_handler('go test .'),
|
|
['Custom'] = helpers.shell_handler('go ', true),
|
|
}
|
|
helpers.choice(handlers)(buffer)
|
|
end
|