auto launch debug ui
This commit is contained in:
parent
1ba7731c16
commit
382871be03
@ -18,6 +18,18 @@ vim.keymap.set('n', '<S-F11>', ":lua require('dap').step_out()<CR>", opts)
|
|||||||
-- detached = true;
|
-- detached = true;
|
||||||
-- };
|
-- };
|
||||||
-- }
|
-- }
|
||||||
|
local dap, dapui = require("dap"), require("dapui")
|
||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
local function getVenvSuffix()
|
local function getVenvSuffix()
|
||||||
if vim.loop.os_uname().sysname == 'Linux' then
|
if vim.loop.os_uname().sysname == 'Linux' then
|
||||||
return 'bin/python'
|
return 'bin/python'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user