From ee4d420353d73dda581717b9c07764e6da7166f6 Mon Sep 17 00:00:00 2001 From: Seymur Bagirov Date: Mon, 29 Jan 2024 21:23:03 +0400 Subject: [PATCH] add cpp debugger --- nvim/lua/themystery/plugins/dap.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/nvim/lua/themystery/plugins/dap.lua b/nvim/lua/themystery/plugins/dap.lua index 1800e05..ad40078 100644 --- a/nvim/lua/themystery/plugins/dap.lua +++ b/nvim/lua/themystery/plugins/dap.lua @@ -18,5 +18,18 @@ return { -- dapui keymaps vim.keymap.set("n", "dui", "lua require'dapui'.toggle()") + + + -- configure adapters + + -- c/c++ debugger + local dap = require("dap") + dap.adapters.cppdbg = { + id = "cppdbg", + type="executable", + command = vim.fn.stdpath("data") .. "/mason/bin/OpenDebugAD7" + } + + end }