feat(neovim): csharp debugging + better definition jumping
This commit is contained in:
parent
be31afe249
commit
e8a9a58fad
|
@ -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" },
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
}
|
||||
''
|
||||
|
|
Loading…
Reference in a new issue