diff --git a/_config/nvim/plugin/dap.lua b/_config/nvim/plugin/dap.lua index 2cf7cd1..b7ba846 100644 --- a/_config/nvim/plugin/dap.lua +++ b/_config/nvim/plugin/dap.lua @@ -28,7 +28,7 @@ dap.adapters.lldb = { host = '127.0.0.1', port = "${port}", executable = { - command = '/usr/bin/lldb-dap', + command = 'lldb-dap', args = { "--port", "${port}" }, } } @@ -68,6 +68,9 @@ vim.keymap.set('n', 'dc', function() dap.continue() end) vim.keymap.set('n', '', function() dap.step_over() end) vim.keymap.set('n', '', function() dap.step_into() end) vim.keymap.set('n', '', function() dap.step_out() end) +vim.keymap.set('n', 'ds', function() dap.step_over() end) +vim.keymap.set('n', 'di', function() dap.step_into() end) +vim.keymap.set('n', 'do', function() dap.step_out() end) vim.keymap.set('n', 'db', function() dap.toggle_breakpoint() end) vim.keymap.set('n', 'dl', function() dap.run_last() end) vim.keymap.set('n', 'du', function() dapui.toggle() end)