diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2025-01-29 12:17:51 -0500 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2025-01-29 12:17:51 -0500 |
| commit | d9ce3f9d396a87ca2212230c4f606d546386be17 (patch) | |
| tree | d28d1b0352adb43e0c5d67c2a07431bb19298370 /.config/nvim/after/plugin/nvim-dap-lldb.lua | |
| parent | 53cd9bf7ff625d948fc5566176dcd825eacc1236 (diff) | |
Updated debugger support
Diffstat (limited to '.config/nvim/after/plugin/nvim-dap-lldb.lua')
| -rw-r--r-- | .config/nvim/after/plugin/nvim-dap-lldb.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.config/nvim/after/plugin/nvim-dap-lldb.lua b/.config/nvim/after/plugin/nvim-dap-lldb.lua index 83425fa..7123093 100644 --- a/.config/nvim/after/plugin/nvim-dap-lldb.lua +++ b/.config/nvim/after/plugin/nvim-dap-lldb.lua @@ -1,7 +1,7 @@ local dap = require('dap') dap.adapters.lldb = { type = 'executable', - command = '/opt/homebrew/opt/llvm/bin/lldb-dap', -- adjust as needed, must be absolute path + command = os.getenv( "HOME" ) .. '/.local/share/nvim/mason/bin/codelldb', -- adjust as needed, must be absolute path name = 'lldb' } @@ -12,7 +12,7 @@ dap.configurations.c = { type = 'lldb', request = 'launch', program = function() - return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file') + return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/build/', 'file') end, cwd = '${workspaceFolder}', stopOnEntry = false, @@ -32,3 +32,4 @@ dap.configurations.c = { -- runInTerminal = false, }, } +dap.configurations.cpp = dap.configurations.c |
