diff options
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, + }, +} + |
