nvim: dap -> termdebug

This commit is contained in:
2023-07-08 15:20:42 +03:00
parent 39b1269674
commit db217f84ea
7 changed files with 45 additions and 148 deletions

View File

@ -0,0 +1,27 @@
-- enable termdebug
vim.cmd("packadd termdebug")
vim.api.nvim_create_autocmd("FileType", {
pattern = {
"go",
"c",
"c++",
},
callback = function()
vim.g.termdebugger = "gdb"
end,
})
vim.api.nvim_create_autocmd("FileType", {
pattern = "rust",
callback = function()
vim.g.termdebugger = "rust-gdb"
end,
})
vim.api.nvim_create_autocmd("FileType", {
pattern = "python",
callback = function()
vim.g.termdebugger = "pdbpp"
end,
})