From 92ed4a6998bc065c8c0c549821dd91ded196620f Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Mon, 5 Feb 2024 17:51:28 +0100 Subject: [PATCH] dap-ui works but no rust stdout --- lua/custom/plugins.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lua/custom/plugins.lua b/lua/custom/plugins.lua index 3407cdc..9db2203 100644 --- a/lua/custom/plugins.lua +++ b/lua/custom/plugins.lua @@ -769,6 +769,20 @@ local plugins = { dependencies = { "mfussenegger/nvim-dap", }, + config = function(_, opts) + local dap = require "dap" + local dapui = require "dapui" + dapui.setup(opts) + 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, }, { "folke/neodev.nvim", opts = {} }, {