Add config from linux conf
This commit is contained in:
parent
174d913f73
commit
6ba1596291
124 changed files with 3913 additions and 2 deletions
7
dot_config/nvim/lua/plugins/dap/init.lua
Normal file
7
dot_config/nvim/lua/plugins/dap/init.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
local function init()
|
||||
call_with_helpers(require('plugins.dap.lldb').init)
|
||||
end
|
||||
|
||||
return {
|
||||
init = init
|
||||
}
|
32
dot_config/nvim/lua/plugins/dap/lldb.lua
Normal file
32
dot_config/nvim/lua/plugins/dap/lldb.lua
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue