aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/home/.config/nvim/lua/custom/plugins/debug.lua
diff options
context:
space:
mode:
authorLibravatar sommerfeld <[email protected]>2026-04-17 10:53:11 +0100
committerLibravatar sommerfeld <[email protected]>2026-04-17 10:53:11 +0100
commitfcab70e06325f123030a9442aef001707a603950 (patch)
tree2bd9c2bd5c731767653f3e2f06adeaa54119eeb5 /home/.config/nvim/lua/custom/plugins/debug.lua
parentbf282a6e1c16a2976a8478f1f6ef916bcf75e52c (diff)
downloaddotfiles-fcab70e06325f123030a9442aef001707a603950.tar.gz
dotfiles-fcab70e06325f123030a9442aef001707a603950.tar.bz2
dotfiles-fcab70e06325f123030a9442aef001707a603950.zip
refactor: flatten custom/plugins/ to plugins/
Rename lua/custom/plugins/ to lua/plugins/ following the standard lazy.nvim convention. The extra custom/ nesting added no value. Update import path in init.lua accordingly.
Diffstat (limited to 'home/.config/nvim/lua/custom/plugins/debug.lua')
-rw-r--r--home/.config/nvim/lua/custom/plugins/debug.lua101
1 files changed, 0 insertions, 101 deletions
diff --git a/home/.config/nvim/lua/custom/plugins/debug.lua b/home/.config/nvim/lua/custom/plugins/debug.lua
deleted file mode 100644
index b47dd63..0000000
--- a/home/.config/nvim/lua/custom/plugins/debug.lua
+++ /dev/null
@@ -1,101 +0,0 @@
-return {
- {
- "miroshQa/debugmaster.nvim",
- branch = "dashboard",
- dependencies = "mfussenegger/nvim-dap",
- keys = {
- {
- "<leader>td",
- function()
- require("debugmaster").mode.toggle()
- end,
- desc = "[T]oggle [D]ebug mode",
- },
- },
- },
- {
- "mfussenegger/nvim-dap",
- config = function()
- local dap = require("dap")
-
- local function get_env_vars()
- local variables = vim.fn.environ()
- table.insert(variables, { ASAN_OPTIONS = "detect_leaks=0" })
- return variables
- end
-
- dap.adapters.lldb = {
- type = "executable",
- command = "lldb-dap",
- name = "lldb",
- env = get_env_vars,
- }
- dap.adapters.gdb = {
- type = "executable",
- command = "gdb",
- args = { "--interpreter=dap" },
- env = get_env_vars,
- }
- dap.adapters.codelldb = {
- type = "executable",
- command = "codelldb",
- env = get_env_vars,
- }
-
- local function get_program()
- local _program
- vim.ui.input({
- prompt = "Program: ",
- complete = "file_in_path",
- }, function(res)
- _program = res
- end)
- return vim.fn.system("which " .. _program):gsub("\n$", "")
- end
-
- local function get_args()
- local _args
- vim.ui.input({
- prompt = "Args: ",
- default = vim.fn.getreg("+"),
- complete = "file",
- }, function(res)
- _args = res
- end)
- return require("dap.utils").splitstr(_args)
- end
-
- dap.configurations.cpp = {
- {
- name = "codelldb Launch",
- type = "codelldb",
- request = "launch",
- cwd = "${workspaceFolder}",
- program = get_program,
- args = get_args,
- stopOnEntry = true,
- console = "integratedTerminal",
- },
- }
-
- dap.configurations.c = dap.configurations.cpp
- dap.configurations.rust = dap.configurations.cpp
- end,
- dependencies = {
- {
- "theHamsta/nvim-dap-virtual-text",
- opts = {},
- dependencies = { "nvim-treesitter/nvim-treesitter" },
- },
- "williamboman/mason.nvim",
- {
- "jay-babu/mason-nvim-dap.nvim",
- opts = {
- automatic_installation = false,
- handlers = {},
- ensure_installed = {},
- },
- },
- },
- },
-}