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',