mirror of
https://github.com/kristoferssolo/runner.nvim.git
synced 2026-02-04 06:12:01 +00:00
Add go handlers
This commit is contained in:
10
lua/runner/handlers/languages/go.lua
Normal file
10
lua/runner/handlers/languages/go.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
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
|
||||
Reference in New Issue
Block a user