aboutsummaryrefslogtreecommitdiff
path: root/lua/pets/commands.lua
diff options
context:
space:
mode:
authorKyle Mendes <pink@hey.com>2023-02-16 09:51:52 -0500
committerKyle Mendes <pink@hey.com>2023-02-16 09:51:52 -0500
commitf61dff6f8f008ad7928986938f2c8d9195ee684a (patch)
tree9410c14872a32fa81ee0c98624c02bcae204ebcf /lua/pets/commands.lua
parentdocs(help): auto generate docs (diff)
Adding the ability to sleep pets, stopping their movement
Diffstat (limited to 'lua/pets/commands.lua')
-rw-r--r--lua/pets/commands.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/pets/commands.lua b/lua/pets/commands.lua
index b2b9888..447f323 100644
--- a/lua/pets/commands.lua
+++ b/lua/pets/commands.lua
@@ -52,3 +52,7 @@ end, {})
vim.api.nvim_create_user_command("PetsHideToggle", function()
pets.toggle_hide()
end, {})
+
+vim.api.nvim_create_user_command("PetsSleepToggle", function()
+ pets.toggle_sleep()
+end, {})