mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-27 11:18:53 +02:00
Update key Map DAP
This commit is contained in:
parent
78027686b6
commit
254e6b9550
3 changed files with 122 additions and 4 deletions
|
@ -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",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue