1
0
Fork 0

Update nvim conf

This commit is contained in:
Florian RICHER (MrDev023) 2021-11-18 22:25:17 +01:00
parent 0ab499d32d
commit a39d7ffe66
6 changed files with 111 additions and 5 deletions

View file

@ -0,0 +1,29 @@
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
end
return {
init = init
}