Add C# installation support

This commit is contained in:
mathijs-bakker
2025-08-22 11:49:38 +02:00
parent 28cbf6c0ba
commit 468c7f29a5
3 changed files with 97 additions and 32 deletions

View File

@@ -25,6 +25,25 @@ function M.setup(opts)
})
require("godotdev.tree-sitter")
if opts.csharp then
local dap = require("dap")
dap.adapters.coreclr = {
type = "executable",
command = opts.netcoredbg_path or "netcoredbg",
args = { "--interpreter=vscode" },
}
dap.configurations.cs = {
{
type = "coreclr",
name = "launch - netcoredbg",
request = "launch",
program = function()
return vim.fn.input("Path to dll: ", vim.fn.getcwd() .. "/bin/Debug/net6.0/", "file")
end,
},
}
end
end
return M