feat(ui): re-render after resize. Fixes #174

This commit is contained in:
Folke Lemaitre 2022-12-26 14:19:33 +01:00
parent 1d3da277da
commit 9a2ecc8750
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 2 additions and 1 deletions

View file

@ -55,7 +55,7 @@ function M.create()
self.render = Render.new(self)
self.update = Util.throttle(Config.options.ui.throttle, self.update)
self:on("User LazyRender", function()
self:on({ "User LazyRender", "User LazyFloatResized" }, function()
if not (self.buf and vim.api.nvim_buf_is_valid(self.buf)) then
return true
end