diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-06-06 15:29:58 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-06-06 15:29:58 +0200 |
commit | ad05cb18f03f3a97a918e090c38ba760147a0bb6 (patch) | |
tree | 233097b3ccbf1a4fef18a291d0d8fda3fba34c03 /config/essentials/nvim/after/plugin/dap.lua | |
parent | 1a7e35285abb5db60d2e1544ce0100e82c5d3490 (diff) | |
parent | 511b6c1bc9acd9e6029d08a6c448f6e0037755fb (diff) |
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'config/essentials/nvim/after/plugin/dap.lua')
-rw-r--r-- | config/essentials/nvim/after/plugin/dap.lua | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/config/essentials/nvim/after/plugin/dap.lua b/config/essentials/nvim/after/plugin/dap.lua deleted file mode 100644 index e32b5ee..0000000 --- a/config/essentials/nvim/after/plugin/dap.lua +++ /dev/null @@ -1,40 +0,0 @@ -local dap = require('dap') - -dap.adapters.coreclr = { - type = 'executable', - command = 'netcoredbg', - args = {'--interpreter=vscode'} -} - -dap.configurations.cs = { - { - type = "coreclr", - name = "launch - netcoredbg", - request = "launch", - program = function() - return vim.fn.input('Path to dll', vim.fn.getcwd() .. '/bin/Debug/', 'file') - end, - }, -} - -local function nnoremap(rhs, lhs, bufopts, desc) - bufopts.desc = desc - vim.keymap.set("n", rhs, lhs, bufopts) -end -local bufopts = { noremap=true, silent=true } - - -nnoremap('<F5>' , dap.continue, bufopts, "Continue") -nnoremap('<F6>' , dap.disconnect, bufopts, "Continue") -nnoremap('<F10>' , dap.step_over, bufopts, "Step over") -nnoremap('<F11>' , dap.step_into, bufopts, "Step into") -nnoremap('<F12>' , dap.step_out, bufopts, "Step out") -nnoremap('<Leader>b' , dap.toggle_breakpoint, bufopts, "Toggle breakpoint") - -nnoremap('<Leader>B' , function() dap.set_breakpoint(vim.fn.input('Breakpoint condition: ')) - end, bufopts, "Set breakpoint") -nnoremap('<Leader>lp' , function() dap.set_breakpoint(nil, nil, vim.fn.input('Log point message: ')) - end, bufopts, "set breakpoint with log point message") - -nnoremap('<Leader>dr' , dap.repl.open, bufopts, "Reply open") -nnoremap('<Leader>dl' , dap.run_last, bufopts, "Run las") |