* refactor(comment): move require to a function * refactor(gotests): move requires inside of functions * refactor(health): move requires inside of function * refactor(iferr): move requires inside of a function * refactor(impl): move some requires inside of functions * refactor(installer): move requires inside of function * refactor(struct_tags): move requires into function * refactor(dap): move import into function * refactor(utils): move import into functions
13 lines
264 B
Lua
13 lines
264 B
Lua
local M = {}
|
|
|
|
---setup nvim-dap for golang using
|
|
function M.setup()
|
|
local cfg = require "gopher.dap.config"
|
|
local u = require "gopher._utils"
|
|
|
|
local dap = u.sreq "dap"
|
|
dap.adapters.go = cfg.adapter
|
|
dap.configurations.go = cfg.configuration
|
|
end
|
|
|
|
return M
|