- config = function(_, opts)
- require("mason-nvim-dap").setup(opts)
- local dap = require("dap")
- dap.configurations.cpp = {
- {
- name = "Launch file",
- type = "cppdbg",
- request = "launch",
- program = function()
- return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/", "file")
- end,
- cwd = "${workspaceFolder}",
- stopAtEntry = true,
- },
- }
- end,