From 4af6caed6b8093beda7435c7001647fb8525da1d Mon Sep 17 00:00:00 2001 From: Smirnov Oleksandr Date: Sat, 22 Jul 2023 03:00:00 +0300 Subject: [PATCH] fix(dap): now dlv uses cmd to run from config --- lua/gopher/dap.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/gopher/dap.lua b/lua/gopher/dap.lua index af16438..551416c 100644 --- a/lua/gopher/dap.lua +++ b/lua/gopher/dap.lua @@ -1,4 +1,5 @@ local u = require "gopher._utils" +local c = require "gopher.config" local dap = {} dap.adapter = function(callback, config) @@ -14,7 +15,7 @@ dap.adapter = function(callback, config) 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 return end