mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2026-04-26 21:31:35 +00:00
[neovim] Remove dap
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user