From b41b0b00d6b0e7e07db6be13ecc01152788c7e1f Mon Sep 17 00:00:00 2001 From: afonsofrancof Date: Sat, 21 Oct 2023 15:18:59 +0100 Subject: [PATCH] [MINOR] Added nvim-dap for debugging c and c++ code --- .config/nvim/lua/plugins/lazy.lua | 36 ++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/.config/nvim/lua/plugins/lazy.lua b/.config/nvim/lua/plugins/lazy.lua index 330ded1..99d33e6 100644 --- a/.config/nvim/lua/plugins/lazy.lua +++ b/.config/nvim/lua/plugins/lazy.lua @@ -160,7 +160,7 @@ lazy.setup({ { 'luk400/vim-jukit', - event = "VeryLazy", + ft = {'python','ipynb'}, }, { @@ -223,6 +223,40 @@ lazy.setup({ end }, + { + "rcarriga/nvim-dap-ui", + event = "VeryLazy", + dependencies = "mfussenegger/nvim-dap", + config = function() + local dap = require("dap") + local dapui = require("dapui") + dapui.setup() + dap.listeners.after.event_initialized["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 + end + }, + { + "jay-babu/mason-nvim-dap.nvim", + event = "VeryLazy", + dependencies = { + "williamboman/mason.nvim", + "mfussenegger/nvim-dap", + }, + opts = { + handlers = {} + }, + }, + { + "mfussenegger/nvim-dap", + }, + { 'williamboman/mason.nvim', config = function()