From f61dff6f8f008ad7928986938f2c8d9195ee684a Mon Sep 17 00:00:00 2001 From: Kyle Mendes Date: Thu, 16 Feb 2023 09:51:52 -0500 Subject: Adding the ability to sleep pets, stopping their movement --- lua/pets/commands.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lua/pets/commands.lua') 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, {}) -- cgit v1.3-2-g11bf