From 4a903ca920b43184efb05a30c0bb79d21b56e0a9 Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Tue, 26 Mar 2024 21:43:28 -0400 Subject: Updated neovim based on theprimagen --- .config/nvim.bak/lua/dap_lldb.lua | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .config/nvim.bak/lua/dap_lldb.lua (limited to '.config/nvim.bak/lua/dap_lldb.lua') diff --git a/.config/nvim.bak/lua/dap_lldb.lua b/.config/nvim.bak/lua/dap_lldb.lua new file mode 100644 index 0000000..40861d0 --- /dev/null +++ b/.config/nvim.bak/lua/dap_lldb.lua @@ -0,0 +1,25 @@ +local dap = require'dap' + +require("dapui").setup() + +dap.adapters.lldb = { + type = 'executable', + -- absolute path is important here, otherwise the argument in the `runInTerminal` request will default to $CWD/lldb-vscode + command = '/usr/bin/lldb-vscode', + name = "lldb" +} +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 = false, + args = {}, + runInTerminal = true, + }, +} + -- cgit v1.2.3