Compare commits

..

No commits in common. "7b1dcff3ce7fba06c9dc3251fa0fe7292284760a" and "11aa5558aaea7cfc7a52b139e5becbbb81067782" have entirely different histories.

2 changed files with 3 additions and 25 deletions

View file

@ -33,25 +33,9 @@ M.dap = {
M.dap_python = {
plugin = true,
n = {
["<leader>dpu"] = {
function ()
local dapui = require("dapui")
dapui.toggle()
end
},
["<leader>dpa"] = {
["<leader>dpr"] = {
function()
local dap = require('dap')
dap.run({
type = 'python',
request = 'attach',
name = 'Debugpy',
justMyCode = false,
connect = {
host = '127.0.0.1',
port = 5678,
}
})
require('dap-python').test_method()
end
}
}

View file

@ -16,12 +16,6 @@ local plugins = {
dap.listeners.after.event_initialized["dapui_config"] = function()
dapui.open()
end
dap.listeners.before.event_terminated["dapui_config"] = function()
dapui.close()
end
dap.listeners.before.event_exited["dapui_config"] = function()
dapui.close()
end
end
},
{
@ -40,7 +34,7 @@ local plugins = {
config = function(_, opts)
local pyenv = os.getenv("VIRTUAL_ENV") or "/usr"
local path = pyenv .. "/bin/python3"
require("dap-python").setup(path, opts)
require("dap-python").setup(path)
require("core.utils").load_mappings("dap_python")
end,
},