aboutsummaryrefslogtreecommitdiff
path: root/lua/pets
diff options
context:
space:
mode:
Diffstat (limited to 'lua/pets')
-rw-r--r--lua/pets/pet.lua12
1 files changed, 9 insertions, 3 deletions
diff --git a/lua/pets/pet.lua b/lua/pets/pet.lua
index 7e2a302..d165b98 100644
--- a/lua/pets/pet.lua
+++ b/lua/pets/pet.lua
@@ -20,8 +20,14 @@ function M.Pet.new(name, type, style, user_opts, state)
instance.sourcedir = wd .. type .. "/" .. style .. "/"
instance.popup = require("nui.popup")(user_opts.popup)
- instance.animation =
- require("pets.animations").Animation.new(instance.sourcedir, type, style, instance.popup, user_opts, instance.state)
+ instance.animation = require("pets.animations").Animation.new(
+ instance.sourcedir,
+ type,
+ style,
+ instance.popup,
+ user_opts,
+ instance.state
+ )
return instance
end
@@ -63,7 +69,7 @@ function M.Pet:set_hidden(hidden)
end
function M.Pet:set_sleep(sleeping)
- self.animation:set_state({sleeping = sleeping})
+ self.animation:set_state({ sleeping = sleeping })
end
return M