Skip to content

Commit 1165d3e

Browse files
committed
fix(swap): additionally check for updates when a swap file was found
1 parent addc0a2 commit 1165d3e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lua/noice/ui/init.lua

+8
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@ function M.enable()
104104
stack_level = stack_level - 1
105105
end)
106106

107+
vim.api.nvim_create_autocmd("SwapExists", {
108+
group = vim.api.nvim_create_augroup("noice-swap-exists", { clear = true }),
109+
callback = function()
110+
Util.try(Router.update)
111+
end,
112+
})
113+
end
114+
107115
function M.redirect()
108116
M.disable()
109117
Router.echo_pending()

0 commit comments

Comments
 (0)