From 23eb7bb108193a450c2c6d6f56e60ea9a36ea55a Mon Sep 17 00:00:00 2001 From: EsVagy42 Date: Mon, 1 Dec 2025 13:44:46 +0100 Subject: [PATCH] Added dap config for c files --- config/dap.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/config/dap.nix b/config/dap.nix index 12751e7..74cbaf0 100644 --- a/config/dap.nix +++ b/config/dap.nix @@ -23,6 +23,20 @@ runInTerminal = true, }, } + dap.configurations.c = { + { + name = 'Launch', + type = 'lldb', + request = 'launch', + program = function() + return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file') + end, + cwd = "''${workspaceFolder}", + stopOnEntry = true, + args = {}, + runInTerminal = true, + }, + } dap.adapters.coreclr = { type = 'executable',