diff options
| author | giuseppegadola <giusgadola@gmail.com> | 2023-05-24 14:07:17 +0200 |
|---|---|---|
| committer | giuseppegadola <giusgadola@gmail.com> | 2023-05-24 14:10:17 +0200 |
| commit | 94b4724e031fc3c9b6da19bdef574f44fabcca16 (patch) | |
| tree | 7694e3193d5e527a69785d87889b3f7c13722568 /lua/pets.lua | |
| parent | docs(help): auto generate docs (diff) | |
feat: handle window resizes
Resize the popup when the window is resized.
Related: #32 #11
Fixes #24
Diffstat (limited to 'lua/pets.lua')
| -rw-r--r-- | lua/pets.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/pets.lua b/lua/pets.lua index 9ebc71a..c883af9 100644 --- a/lua/pets.lua +++ b/lua/pets.lua @@ -140,4 +140,10 @@ function M.toggle_idle() end end +function M.refresh() + for _, pet in pairs(M.pets) do + pet:refresh_popup() + end +end + return M |