diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-04-29 13:59:47 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-04-29 13:59:47 +0200 |
commit | 026b92cdbfafcbd7103dcc53bba4f44c6a459593 (patch) | |
tree | 4fca2902d8f502affe14abc4afc7e4902ce59a29 /config/essentials/nvim/after/plugin/dap.lua | |
parent | 692bc52c20da866630fa401be6740bc38f8f8574 (diff) |
Removed nvim
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") |