diff options
| author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-04-29 20:59:11 +0200 | 
|---|---|---|
| committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-04-29 20:59:11 +0200 | 
| commit | 236f6bff4d262e96cd6e07b0ba46908a457860d6 (patch) | |
| tree | 82f26add03abb644fa975b1a39a93d673fe1fc9e /config/essentials/nvim/after/plugin/dap.lua | |
| parent | 179582b4187f5cc9ab784d8ec20b42db4bf12281 (diff) | |
| parent | cb06bb626545a35f56f55f2abe3942262f5ca824 (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") | 
