|
|
|
@ -23,7 +23,7 @@ return {
|
|
|
|
|
|
|
|
|
|
-- Add your own debuggers here
|
|
|
|
|
'leoluz/nvim-dap-go',
|
|
|
|
|
'mfussenegger/nvim-dap-python'
|
|
|
|
|
'mfussenegger/nvim-dap-python',
|
|
|
|
|
},
|
|
|
|
|
config = function()
|
|
|
|
|
local dap = require 'dap'
|
|
|
|
@ -42,8 +42,7 @@ return {
|
|
|
|
|
-- online, please don't ask me how to install them :)
|
|
|
|
|
ensure_installed = {
|
|
|
|
|
-- Update this to ensure that you have the debuggers for the langs you want
|
|
|
|
|
'delve',
|
|
|
|
|
'debugpy'
|
|
|
|
|
'debugpy',
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -85,10 +84,10 @@ return {
|
|
|
|
|
dap.listeners.after.event_initialized['dapui_config'] = dapui.open
|
|
|
|
|
dap.listeners.before.event_terminated['dapui_config'] = dapui.close
|
|
|
|
|
dap.listeners.before.event_exited['dapui_config'] = dapui.close
|
|
|
|
|
local debugpyPythonPath = require("mason-registry").get_package("debugpy"):get_install_path() .. "/venv/bin/python3"
|
|
|
|
|
local debugpyPythonPath = require('mason-registry').get_package('debugpy'):get_install_path() .. '/venv/bin/python3'
|
|
|
|
|
|
|
|
|
|
-- Install golang specific config
|
|
|
|
|
require('dap-go').setup()
|
|
|
|
|
require("dap-python").setup(debugpyPythonPath, {})
|
|
|
|
|
require('dap-python').setup(debugpyPythonPath, {})
|
|
|
|
|
end,
|
|
|
|
|
}
|
|
|
|
|