Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions doc/dap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,7 @@ MAPPINGS *dap-mappings*

nvim-dap does not configure any mappings by default.

Some example mappings you could configure:

Some example mappings you could configure, first in traditional VimL, then Lua:
>vim
nnoremap <silent> <F5> <Cmd>lua require'dap'.continue()<CR>
nnoremap <silent> <F10> <Cmd>lua require'dap'.step_over()<CR>
Expand All @@ -475,6 +474,19 @@ Some example mappings you could configure:
nnoremap <silent> <Leader>dr <Cmd>lua require'dap'.repl.open()<CR>
nnoremap <silent> <Leader>dl <Cmd>lua require'dap'.run_last()<CR>
<
>lua
vim.keymap.set('n','<F5>',function() require('dap').continue() end)
vim.keymap.set('n','<F10>',function() require('dap').step_over() end)
vim.keymap.set('n','<F11>',function() require('dap').step_into() end)
vim.keymap.set('n','<F12>',function() require('dap').step_out() end)
vim.keymap.set('n','<Leader>b',function() require('dap').toggle_breakpoint() end)
vim.keymap.set('n','<Leader>B',function() require('dap').set_breakpoint() end)
vim.keymap.set('n','<Leader>lp',function() require('dap').set_breakpoint(nil, nil, vim.fn.input('Log point message: ')) end)
vim.keymap.set('n','<Leader>dr',function() require('dap').repl.open() end)
vim.keymap.set('n','<Leader>dl',function() require('dap').run_last() end)
<



==============================================================================
CLIENT CONFIGURATION *dap.defaults*
Expand Down