diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/pets/pet.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/pets/pet.lua b/lua/pets/pet.lua index 2442eec..f045f70 100644 --- a/lua/pets/pet.lua +++ b/lua/pets/pet.lua @@ -42,6 +42,10 @@ end -- start the animation of the pet function M.Pet:animate() + if self.animation.row <= 0 then + vim.notify("Row must be 1 or greater. Check your config", vim.log.levels.ERROR) + return + end self.popup:mount() self.animation:start() end |