refactor(dap): move import into function
This commit is contained in:
parent
64c90c9f6b
commit
eb927bc19b
1 changed files with 3 additions and 2 deletions
|
|
@ -1,9 +1,10 @@
|
|||
local cfg = require "gopher.dap.config"
|
||||
local u = require "gopher._utils"
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue