feat(neovim): csharp debugging + better definition jumping

This commit is contained in:
Alexandre Cavalheiro 2024-12-08 19:52:24 -03:00
parent be31afe249
commit e8a9a58fad
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
2 changed files with 22 additions and 0 deletions

View file

@ -18,6 +18,7 @@ return {
{ import = "astrocommunity.pack.cmake" },
{ import = "astrocommunity.pack.cpp" },
{ import = "astrocommunity.pack.cs" },
{ import = "astrocommunity.pack.godot" },
{ import = "astrocommunity.pack.html-css" },
{ import = "astrocommunity.pack.json" },

View file

@ -30,6 +30,7 @@ pkgs:
},
}
-- @type DapAdapter
dap.adapters.cppdbg = {
id = "cppdbg",
type = "executable",
@ -37,6 +38,13 @@ pkgs:
"${pkgs.vscode-extensions.ms-vscode.cpptools}/share/vscode/extensions/ms-vscode.cpptools/debugAdapters/bin/OpenDebugAD7",
}
-- @type DapAdapter
dap.adapters.coreclr = {
type = "executable",
command = "${pkgs.netcoredbg}/bin/netcoredbg",
args = {"--interpreter=vscode"}
}
-- @type DapConfiguration
dap.configurations.rust = {
{
@ -51,6 +59,7 @@ pkgs:
},
}
-- @type DapConfiguration
dap.configurations.cpp = {
{
name = "Launch file",
@ -77,4 +86,16 @@ pkgs:
}
dap.configurations.c = dap.configurations.cpp
-- @type DapConfiguration
dap.configurations.cs = {
{
type = "coreclr",
name = "launch - netcoredbg",
request = "launch",
program = function()
return vim.fn.input('Path to dll', vim.fn.getcwd() .. '/bin/Debug/', 'file')
end,
},
}
''