From 026b92cdbfafcbd7103dcc53bba4f44c6a459593 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 29 Apr 2024 13:59:47 +0200 Subject: Removed nvim --- config/essentials/nvim/after/plugin/dap.lua | 40 ----------------------------- 1 file changed, 40 deletions(-) delete mode 100644 config/essentials/nvim/after/plugin/dap.lua (limited to 'config/essentials/nvim/after/plugin/dap.lua') 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('' , dap.continue, bufopts, "Continue") -nnoremap('' , dap.disconnect, bufopts, "Continue") -nnoremap('' , dap.step_over, bufopts, "Step over") -nnoremap('' , dap.step_into, bufopts, "Step into") -nnoremap('' , dap.step_out, bufopts, "Step out") -nnoremap('b' , dap.toggle_breakpoint, bufopts, "Toggle breakpoint") - -nnoremap('B' , function() dap.set_breakpoint(vim.fn.input('Breakpoint condition: ')) - end, bufopts, "Set breakpoint") -nnoremap('lp' , function() dap.set_breakpoint(nil, nil, vim.fn.input('Log point message: ')) - end, bufopts, "set breakpoint with log point message") - -nnoremap('dr' , dap.repl.open, bufopts, "Reply open") -nnoremap('dl' , dap.run_last, bufopts, "Run las") -- cgit v1.2.3