fix(dap): now dlv uses cmd to run from config
This commit is contained in:
parent
5f8466d043
commit
4af6caed6b
1 changed files with 2 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
local u = require "gopher._utils"
|
local u = require "gopher._utils"
|
||||||
|
local c = require "gopher.config"
|
||||||
local dap = {}
|
local dap = {}
|
||||||
|
|
||||||
dap.adapter = function(callback, config)
|
dap.adapter = function(callback, config)
|
||||||
|
|
@ -14,7 +15,7 @@ dap.adapter = function(callback, config)
|
||||||
detached = true,
|
detached = true,
|
||||||
}
|
}
|
||||||
|
|
||||||
handle, pid_or_err = vim.loop.spawn("dlv", opts, function(status)
|
handle, pid_or_err = vim.loop.spawn(c.commands.dlv, opts, function(status)
|
||||||
if not stdout or not handle then
|
if not stdout or not handle then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue