Update nvim conf
This commit is contained in:
parent
0ab499d32d
commit
a39d7ffe66
6 changed files with 111 additions and 5 deletions
29
configs/nvim/lua/plugins/dap/lldb.lua
Normal file
29
configs/nvim/lua/plugins/dap/lldb.lua
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue