go.nvim icon indicating copy to clipboard operation
go.nvim copied to clipboard

Add a debug adapter on start

Open adinhodovic opened this issue 1 year ago • 2 comments

Can we add a debug adapter for DAP that gets added on initialization? Currently I run GoDebug and then require("neotest").run.run({ strategy = "dap" }) to have a debug adapter for Go available. Otherwise if I run neotest at first the debug adapter is not available for go.

adinhodovic avatar Aug 27 '24 14:08 adinhodovic

You can call require('go.dap').run() to startup a dap from go.nvim Alternatively, there is a standalone go dap plugin you can use with neotest.

ray-x avatar Aug 28 '24 01:08 ray-x

You can call require('go.dap').run() to startup a dap from go.nvim Alternatively, there is a standalone go dap plugin you can use with neotest.

That's fair but I'd like the adapter here https://github.com/ray-x/go.nvim/blob/8389adb56ab124b75d858df5f87b741eaca7b8b3/lua/go/dap.lua#L386-L398 to be available from the initialization of the plugin. So I don't have to use .run() to have a dap adapter available for dap. Does that make sense?

adinhodovic avatar Aug 28 '24 14:08 adinhodovic