Add C# installation support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user