Skip to content

Commit

Permalink
feat(nvim): better notification and debug ui
Browse files Browse the repository at this point in the history
  • Loading branch information
spywhere committed Jan 26, 2024
1 parent 671d5e2 commit 9035112
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configs/nvim/lua/plugin/debugging/dapui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
3 changes: 3 additions & 0 deletions configs/nvim/lua/plugin/language/ios.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9035112

Please sign in to comment.