plugin updates

This commit is contained in:
kossLAN 2024-08-28 00:03:42 -04:00
parent fd4cc7c8e6
commit 2019cab65d
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8
8 changed files with 113 additions and 59 deletions

30
nvim/plugin/dap.lua Normal file
View file

@ -0,0 +1,30 @@
local dap = require('dap')
dap.adapters.gdb = {
type = 'executable',
command = 'gdb',
args = { '-i', 'dap' },
}
dap.configurations.c = {
{
name = 'Launch',
type = 'gdb',
request = 'launch',
program = function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
end,
stopAtBeginningOfMainSubprogram = false,
},
}
dap.configurations.cpp = {
{
name = 'Launch',
type = 'gdb',
request = 'launch',
program = function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
end,
stopAtBeginningOfMainSubprogram = false,
},
}