configure nvim-dap

This commit is contained in:
akulij 2025-06-06 19:10:22 +00:00
parent 2dd3d4fe68
commit 1aec720304

View File

@ -1,3 +1,33 @@
return { return {
'mfussenegger/nvim-dap' {
'mfussenegger/nvim-dap',
init = function()
local dap = require("dap")
-- dap.adapters.lldb = {
-- type = "executable",
-- command = "/nix/store/ydcx96xw2wi2bndiaanql1wb8dqmy60r-vscode-extension-vadimcn-vscode-lldb-1.10.0/share/vscode/extensions/vadimcn.vscode-lldb/adapter/codelldb --port 13000",
-- name = "lldb",
-- port = "13000",
-- }
dap.adapters.lldb = {
type = "server",
port = "${port}",
executable = {
command =
"/nix/store/ydcx96xw2wi2bndiaanql1wb8dqmy60r-vscode-extension-vadimcn-vscode-lldb-1.10.0/share/vscode/extensions/vadimcn.vscode-lldb/adapter/codelldb",
args = { "--port", "${port}" },
},
name = "lldb",
}
dap.configurations.rust = {
{
type = "lldb",
request = "launch",
program = function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
end,
}
}
end
}
} }