diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2024-03-26 21:43:28 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2024-03-26 21:43:28 -0400 |
| commit | 4a903ca920b43184efb05a30c0bb79d21b56e0a9 (patch) | |
| tree | 78b8a674f404954af127a2cf7546780824c3b904 /.config/nvim.bak/lua/dap_lldb.lua | |
| parent | f4b64685c4e5e80bd279cbb7d6f1c774041e7baa (diff) | |
Updated neovim based on theprimagen
Diffstat (limited to '.config/nvim.bak/lua/dap_lldb.lua')
| -rw-r--r-- | .config/nvim.bak/lua/dap_lldb.lua | 25 |
1 files changed, 25 insertions, 0 deletions
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, + }, +} + |
