diff --git a/nvim/lua/themystery/plugins/dap.lua b/nvim/lua/themystery/plugins/dap.lua index f6487a5..06a80fb 100644 --- a/nvim/lua/themystery/plugins/dap.lua +++ b/nvim/lua/themystery/plugins/dap.lua @@ -33,18 +33,22 @@ return { } } - -- dap.configurations.rust = { - -- { - -- name = "Rust Debug", - -- type = "codelldb", - -- request = "launch", - -- program = function() - -- return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/target/debug", "file") - -- end, - -- cwd = "${workspaceFolder}", - -- stopOnEntry = true, - -- showDisassembly = "never" - -- } - -- } + dap.adapters.coreclr = { + type = "executable", + command = vim.fn.stdpath("data") .. "/mason/bin/netcoredbg", + args = { '--interpreter=vscode' } + } + + + dap.configurations.cs = { + { + name = "launch - netcoredbg", + type = "coreclr", + request = "launch", + program = function() + return vim.fn.input('Path to dll', vim.fn.getcwd() .. '/bin/Debug/', 'file') + end + } + } end }