set up dap for c# and switch dap-python from using debugpy-adapter in path
Mason installs these DAP adapters so that they appear to be in path for any process spawned by nvim, so I can just use that instead. Seems to be working perfectly. NOTE: to debug a c# application the root folder of the current vim session should contain the .csproj file you want to debug.
This commit is contained in:
@@ -689,12 +689,14 @@ require'lazy'.setup{ --{{{1
|
|||||||
'theHamsta/nvim-dap-virtual-text',
|
'theHamsta/nvim-dap-virtual-text',
|
||||||
'leoluz/nvim-dap-go',
|
'leoluz/nvim-dap-go',
|
||||||
'mfussenegger/nvim-dap-python',
|
'mfussenegger/nvim-dap-python',
|
||||||
|
'nicholasmata/nvim-dap-cs',
|
||||||
},
|
},
|
||||||
keys = {',b', ',db', ',B', '<B'},
|
keys = {',b', ',db', ',B', '<B'},
|
||||||
config = function()
|
config = function()
|
||||||
require'nvim-dap-virtual-text'.setup{ commented = true, }
|
require'nvim-dap-virtual-text'.setup{ commented = true, }
|
||||||
require'dap-go'.setup()
|
require'dap-go'.setup()
|
||||||
require'dap-python'.setup(get_python_venv_path())
|
require'dap-python'.setup('debugpy-adapter')
|
||||||
|
require('dap-cs').setup()
|
||||||
|
|
||||||
local dap = require'dap'
|
local dap = require'dap'
|
||||||
dap.adapters.godot = { type = 'server', host = '127.0.0.1', port = 6006, }
|
dap.adapters.godot = { type = 'server', host = '127.0.0.1', port = 6006, }
|
||||||
|
|||||||
Reference in New Issue
Block a user