summaryrefslogtreecommitdiff
path: root/.config/nvim/after/plugin/nvim-dap-lldb.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/after/plugin/nvim-dap-lldb.lua')
-rw-r--r--.config/nvim/after/plugin/nvim-dap-lldb.lua35
1 files changed, 0 insertions, 35 deletions
diff --git a/.config/nvim/after/plugin/nvim-dap-lldb.lua b/.config/nvim/after/plugin/nvim-dap-lldb.lua
deleted file mode 100644
index 7123093..0000000
--- a/.config/nvim/after/plugin/nvim-dap-lldb.lua
+++ /dev/null
@@ -1,35 +0,0 @@
-local dap = require('dap')
-dap.adapters.lldb = {
- type = 'executable',
- command = os.getenv( "HOME" ) .. '/.local/share/nvim/mason/bin/codelldb', -- adjust as needed, must be absolute path
- name = 'lldb'
-}
-
-local dap = require('dap')
-dap.configurations.c = {
- {
- name = 'Launch',
- type = 'lldb',
- request = 'launch',
- program = function()
- return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/build/', 'file')
- end,
- cwd = '${workspaceFolder}',
- stopOnEntry = false,
- args = {},
-
- -- 💀
- -- if you change `runInTerminal` to true, you might need to change the yama/ptrace_scope setting:
- --
- -- echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
- --
- -- Otherwise you might get the following error:
- --
- -- Error on launch: Failed to attach to the target process
- --
- -- But you should be aware of the implications:
- -- https://www.kernel.org/doc/html/latest/admin-guide/LSM/Yama.html
- -- runInTerminal = false,
- },
-}
-dap.configurations.cpp = dap.configurations.c