1
0
Fork 0

Add config from linux conf

This commit is contained in:
Florian RICHER (MrDev023) 2022-04-13 21:54:22 +02:00
parent 174d913f73
commit 6ba1596291
124 changed files with 3913 additions and 2 deletions

View file

@ -0,0 +1,32 @@
local dap = require('dap')
local function init()
dap.adapters.lldb = {
type = 'executable',
command = '/usr/bin/lldb-vscode',
name = 'lldb'
}
dap.configurations.cpp = {
{
name = "Launch",
type = "lldb",
request = "launch",
program = function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
end,
cwd = '${workspaceFolder}',
stopOnEntry = false,
args = {},
runInTerminal = false,
},
}
dap.configurations.c = dap.configurations.cpp
-- dap.configurations.rust = dap.configurations.cpp
-- dap.configurations.rust[1].program = function()
-- return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/target/debug/', 'file')
-- end
end
return {
init = init
}