Something went wrong. Try again.
My personal nvim config files
Something went wrong. Try again.
1.6 kB · 60 lines
Lua
at main
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061return { -- DAP configs { "rcarriga/nvim-dap-ui", dependencies = { "mfussenegger/nvim-dap", "nvim-neotest/nvim-nio", "mfussenegger/nvim-dap-python", -- C# specific "ramboe/ramboe-dotnet-utils", }, event = "VeryLazy", config = function() local dap, dapui = require("dap"), require("dapui")
-- Language setup
-- C# local netcoredbg_adapter = { type = "executable", command = vim.fn.stdpath("data") .. "/mason/packages/netcoredbg/netcoredbg/netcoredbg", args = { "--interpreter=vscode" }, }
dap.adapters.netcoredbg = netcoredbg_adapter -- needed for normal debugging dap.adapters.coreclr = netcoredbg_adapter -- needed for unit test debugging
dap.configurations.cs = { { type = "coreclr", name = "LAUNCH directly from nvim", request = "launch", program = function() -- this dependency is part of "ramboe/ramboe-dotnet-utils" return require("dap-dll-autopicker").build_dll_path() end }, }
-- Python require("dap-python").setup()
-- UI setup dapui.setup()
dap.listeners.before.attach.dapui_config = function() dapui.open() end dap.listeners.before.launch.dapui_config = function() dapui.open() end dap.listeners.before.event_terminated.dapui_config = function() dapui.close() end dap.listeners.before.event_exited.dapui_config = function() dapui.close() end end, },}