aboutsummaryrefslogtreecommitdiff
path: root/lua/pets/commands.lua
diff options
context:
space:
mode:
authorGiuseppe Gadola <67549788+giusgad@users.noreply.github.com>2023-02-16 16:56:38 +0100
committerGitHub <noreply@github.com>2023-02-16 16:56:38 +0100
commit14957d3912d9adba6fca8fd8354ecc2f9ee94cf9 (patch)
treec76fdbbe6e52abea63cf3d0c18ef9a53100488e7 /lua/pets/commands.lua
parentdocs(help): auto generate docs (diff)
parentdocs(readme): added PetsSleepToggle command (diff)
chore: merge pull request #7 from Kyle-Mendes/sleeping
Adding the ability to sleep pets, stopping their movement but keeping the animation going
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, {})