1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2026-04-26 20:21:35 +00:00

[neovim] Remove dap

This commit is contained in:
2026-04-19 18:07:21 +02:00
parent 3b2986e24c
commit 2b789b6eaa
4 changed files with 11 additions and 67 deletions
-6
View File
@@ -161,12 +161,6 @@ require("lazy").setup({
end, 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 -- Python
{ {
"linux-cultist/venv-selector.nvim", "linux-cultist/venv-selector.nvim",
+11 -12
View File
@@ -1,16 +1,16 @@
local bufferline = require("bufferline") local bufferline = require("bufferline")
local function is_buffer_loaded(name) -- local function is_buffer_loaded(name)
local bufs = vim.api.nvim_list_bufs() -- local bufs = vim.api.nvim_list_bufs()
--
for _, buffer in pairs(bufs) do -- for _, buffer in pairs(bufs) do
if vim.fn.getbufvar(buffer, "&filetype") == name then -- if vim.fn.getbufvar(buffer, "&filetype") == name then
return true -- return true
end -- end
end -- end
--
return false -- return false
end -- end
bufferline.setup({ bufferline.setup({
options = { options = {
@@ -18,7 +18,6 @@ bufferline.setup({
right_mouse_command = "Bdelete! %d", right_mouse_command = "Bdelete! %d",
offsets = { offsets = {
{ filetype = "snacks_picker_list", text = "", padding = 1 }, { filetype = "snacks_picker_list", text = "", padding = 1 },
{ filetype = "dapui_scopes", text = "", padding = 1 },
}, },
indicator = { indicator = {
style = "underline", style = "underline",
-48
View File
@@ -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
-1
View File
@@ -11,7 +11,6 @@ require("plugins.lsp")
require("plugins.go") require("plugins.go")
require("plugins.typescript") require("plugins.typescript")
require("plugins.neotest") require("plugins.neotest")
require("plugins.dap")
require("plugins.noice") require("plugins.noice")
require("plugins.trouble") require("plugins.trouble")
require("plugins.autosave") require("plugins.autosave")