Neovim configs for 2023. Hopefully they last.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
1.2 KiB

2 years ago
  1. vim.keymap.set('n', '<F1>', function() require('dap').continue() end)
  2. vim.keymap.set('n', '<F2>', function() require('dap').step_over() end)
  3. vim.keymap.set('n', '<F3>', function() require('dap').step_into() end)
  4. vim.keymap.set('n', '<F4>', function() require('dap').step_out() end)
  5. vim.keymap.set('n', '<Leader>b', function() require('dap').toggle_breakpoint() end)
  6. vim.keymap.set('n', '<Leader>B', function() require('dap').set_breakpoint() end)
  7. vim.keymap.set('n', '<Leader>lp',
  8. function() require('dap').set_breakpoint(nil, nil, vim.fn.input('Log point message: ')) end)
  9. vim.keymap.set('n', '<Leader>dr', function() require('dap').repl.open() end)
  10. vim.keymap.set('n', '<Leader>dl', function() require('dap').run_last() end)
  11. vim.keymap.set({ 'n', 'v' }, '<Leader>dh', function()
  12. require('dap.ui.widgets').hover()
  13. end)
  14. vim.keymap.set({ 'n', 'v' }, '<Leader>dp', function()
  15. require('dap.ui.widgets').preview()
  16. end)
  17. vim.keymap.set('n', '<Leader>df', function()
  18. local widgets = require('dap.ui.widgets')
  19. widgets.centered_float(widgets.frames)
  20. end)
  21. vim.keymap.set('n', '<Leader>ds', function()
  22. local widgets = require('dap.ui.widgets')
  23. widgets.centered_float(widgets.scopes)
  24. end)