From 9035112dde8841f58a14176559ce938ddd6aad53 Mon Sep 17 00:00:00 2001 From: Sirisak Lueangsaksri <1087399+spywhere@users.noreply.github.com> Date: Fri, 26 Jan 2024 18:36:00 +0700 Subject: [PATCH] feat(nvim): better notification and debug ui --- configs/nvim/lua/plugin/debugging/dapui.lua | 4 ++-- configs/nvim/lua/plugin/language/ios.lua | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/configs/nvim/lua/plugin/debugging/dapui.lua b/configs/nvim/lua/plugin/debugging/dapui.lua index 1da32f3..49c477b 100644 --- a/configs/nvim/lua/plugin/debugging/dapui.lua +++ b/configs/nvim/lua/plugin/debugging/dapui.lua @@ -9,8 +9,8 @@ registry.install { 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 + dap.listeners.after.event_terminated.dapui_config = function () dapui.close() end + dap.listeners.after.event_exited.dapui_config = function () dapui.close() end end, config = function () local dapui = require('dapui') diff --git a/configs/nvim/lua/plugin/language/ios.lua b/configs/nvim/lua/plugin/language/ios.lua index e20db44..c2689d9 100644 --- a/configs/nvim/lua/plugin/language/ios.lua +++ b/configs/nvim/lua/plugin/language/ios.lua @@ -33,10 +33,13 @@ registry.install { auto_focus = false, notify = function (message, severity) + local fidget = prequire('fidget') if progress_handle then progress_handle.message = message progress_handle:finish() progress_handle = nil + elseif fidget then + fidget.notify(message, severity) else vim.notify(message, severity) end