24 lines
464 B
Lua
24 lines
464 B
Lua
local M = {}
|
|
|
|
M.setup = function()
|
|
local dap = require("dap")
|
|
dap.adapters.coreclr = {
|
|
type = "executable",
|
|
command = "netcoredbg",
|
|
args = { "--interpreter=vscode" },
|
|
}
|
|
dap.configurations = dap.configurations or {}
|
|
dap.configurations.cs = {
|
|
{
|
|
type = "coreclr",
|
|
name = "launch",
|
|
request = "launch",
|
|
program = function()
|
|
return vim.fn.input("Path to dll: ", vim.fn.getcwd() .. "/bin/Debug/net8.0/", "file")
|
|
end,
|
|
},
|
|
}
|
|
end
|
|
|
|
return M
|