feat(nvim): enabled c++ debugging

This commit is contained in:
Michael Mandl 2025-04-24 08:49:14 +02:00
parent bd20a50379
commit 100f65c951
Signed by: mandlm
GPG key ID: 088ED38F036C7AF2
2 changed files with 20 additions and 3 deletions

View file

@ -1,6 +1,26 @@
local dap = require("dap")
local dapui = require("dapui")
dap.adapters.lldb = {
type = "executable",
command = "lldb-dap",
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 = {},
},
}
dapui.setup()
vim.fn.sign_define("DapBreakpoint", { text = "🔴", texthl = "", linehl = "", numhl = "" })

View file

@ -1,8 +1,5 @@
{ pkgs, theme, vimwikiPath, ... }:
{
# symlink for a stable path
home.file.".vscode-extensions/vscode-lldb".source = pkgs.vscode-extensions.vadimcn.vscode-lldb;
programs = {
neovim = {
enable = true;