Update key Map DAP

This commit is contained in:
asep komarudin 2023-01-24 19:53:48 +07:00
parent 78027686b6
commit 254e6b9550
3 changed files with 122 additions and 4 deletions

View file

@ -259,6 +259,86 @@ local mappings = {
end,
"Start/Continue",
},
i = {
function()
if is_dap then
require("dap").step_into()
else
vim.notify("DAP Not Support", "info")
end
end,
"Step Into (F11)",
},
o = {
function()
if is_dap then
require("dap").step_over()
else
vim.notify("DAP Not Support", "info")
end
end,
"Step Over (F10)",
},
O = {
function()
if is_dap then
require("dap").step_out()
else
vim.notify("DAP Not Support", "info")
end
end,
"Step Out (S-F11)",
},
q = {
function()
if is_dap then
require("dap").close()
else
vim.notify("DAP Not Support", "info")
end
end,
"Close Session",
},
Q = {
function()
if is_dap then
require("dap").terminate()
else
vim.notify("DAP Not Support", "info")
end
end,
"Terminate Session (S-F5)",
},
p = {
function()
if is_dap then
require("dap").pause()
else
vim.notify("DAP Not Support", "info")
end
end,
"Pause (F6)",
},
r = {
function()
if is_dap then
require("dap").restart_frame()
else
vim.notify("DAP Not Support", "info")
end
end,
"Restart (C-F5)",
},
R = {
function()
if is_dap then
require("dap").repl.toggle()
else
vim.notify("DAP Not Support", "info")
end
end,
"Toggle REPL",
},
},
}