From 2b789b6eaa3b09d1e88db9f0510af38029174e0a Mon Sep 17 00:00:00 2001 From: Daniel Carrillo Date: Sun, 19 Apr 2026 18:07:21 +0200 Subject: [PATCH] [neovim] Remove dap --- .config/nvim/lua/core/lazy.lua | 6 ---- .config/nvim/lua/plugins/bufferline.lua | 23 ++++++------ .config/nvim/lua/plugins/dap.lua | 48 ------------------------- .config/nvim/lua/plugins/init.lua | 1 - 4 files changed, 11 insertions(+), 67 deletions(-) delete mode 100644 .config/nvim/lua/plugins/dap.lua diff --git a/.config/nvim/lua/core/lazy.lua b/.config/nvim/lua/core/lazy.lua index 4b25210..cf07ff4 100644 --- a/.config/nvim/lua/core/lazy.lua +++ b/.config/nvim/lua/core/lazy.lua @@ -161,12 +161,6 @@ require("lazy").setup({ end, }, - -- DAP - { "mfussenegger/nvim-dap", event = "VeryLazy", version = "0.*" }, - { "rcarriga/nvim-dap-ui", event = "VeryLazy", version = "v4.*" }, - { "theHamsta/nvim-dap-virtual-text", event = "VeryLazy" }, - { "mfussenegger/nvim-dap-python" }, - -- Python { "linux-cultist/venv-selector.nvim", diff --git a/.config/nvim/lua/plugins/bufferline.lua b/.config/nvim/lua/plugins/bufferline.lua index 8ab905c..79d42d4 100644 --- a/.config/nvim/lua/plugins/bufferline.lua +++ b/.config/nvim/lua/plugins/bufferline.lua @@ -1,16 +1,16 @@ local bufferline = require("bufferline") -local function is_buffer_loaded(name) - local bufs = vim.api.nvim_list_bufs() - - for _, buffer in pairs(bufs) do - if vim.fn.getbufvar(buffer, "&filetype") == name then - return true - end - end - - return false -end +-- local function is_buffer_loaded(name) +-- local bufs = vim.api.nvim_list_bufs() +-- +-- for _, buffer in pairs(bufs) do +-- if vim.fn.getbufvar(buffer, "&filetype") == name then +-- return true +-- end +-- end +-- +-- return false +-- end bufferline.setup({ options = { @@ -18,7 +18,6 @@ bufferline.setup({ right_mouse_command = "Bdelete! %d", offsets = { { filetype = "snacks_picker_list", text = "", padding = 1 }, - { filetype = "dapui_scopes", text = "", padding = 1 }, }, indicator = { style = "underline", diff --git a/.config/nvim/lua/plugins/dap.lua b/.config/nvim/lua/plugins/dap.lua deleted file mode 100644 index 445db80..0000000 --- a/.config/nvim/lua/plugins/dap.lua +++ /dev/null @@ -1,48 +0,0 @@ -local dap = require("dap") -local dapui = require("dapui") - -local debugpyPythonPath = vim.fn.exepath("debugpy") .. "/venv/bin/python3" -require("dap-python").setup(debugpyPythonPath, {}) - -dapui.setup({ - layouts = { - { - elements = { - { id = "scopes", size = 0.25 }, - "watches", - "stacks", - "breakpoints", - }, - size = 50, -- columns - position = "left", - }, - { - elements = { - "repl", - -- "console", - }, - size = 0.25, -- 25% of total lines - position = "bottom", - }, - }, -}) - -vim.fn.sign_define("DapBreakpoint", { text = "", texthl = "DiagnosticSignError", linehl = "", numhl = "" }) -vim.fn.sign_define("DapStopped", { text = "󰔰", texthl = "DiagnosticSignWarn", linehl = "", numhl = "" }) - -dap.listeners.after.event_initialized.dapui_config = function() - dapui.open() -end - -dap.listeners.before.attach.dapui_config = function() - dapui.open() -end -dap.listeners.before.launch.dapui_config = function() - dapui.open() -end -dap.listeners.before.event_terminated.dapui_config = function() - dapui.close() -end -dap.listeners.before.event_exited.dapui_config = function() - dapui.close() -end diff --git a/.config/nvim/lua/plugins/init.lua b/.config/nvim/lua/plugins/init.lua index 618a9b7..65789a9 100644 --- a/.config/nvim/lua/plugins/init.lua +++ b/.config/nvim/lua/plugins/init.lua @@ -11,7 +11,6 @@ require("plugins.lsp") require("plugins.go") require("plugins.typescript") require("plugins.neotest") -require("plugins.dap") require("plugins.noice") require("plugins.trouble") require("plugins.autosave")