aboutsummaryrefslogtreecommitdiff
path: root/lua/pets/commands.lua
diff options
context:
space:
mode:
authorGiuseppe Gadola <giusgadola@gmail.com>2023-03-04 17:42:52 +0100
committerGiuseppe Gadola <giusgadola@gmail.com>2023-03-04 17:49:03 +0100
commit94e2b2fa25e9f4ee0acca16853f58f0967796f22 (patch)
treee58661486d5b4577c6edde445b285dc2e6516f67 /lua/pets/commands.lua
parentrefactor: pet-specific values (diff)
refactor: PetsSleepToggle to PetsIdleToggle
The word "sleep" is changed to "idle" in the whole project for readability.
Diffstat (limited to 'lua/pets/commands.lua')
-rw-r--r--lua/pets/commands.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/lua/pets/commands.lua b/lua/pets/commands.lua
index 336a816..da4490d 100644
--- a/lua/pets/commands.lua
+++ b/lua/pets/commands.lua
@@ -53,6 +53,9 @@ vim.api.nvim_create_user_command("PetsHideToggle", function()
pets.toggle_hide()
end, {})
+vim.api.nvim_create_user_command("PetsIdleToggle", function()
+ pets.toggle_idle()
+end, {})
vim.api.nvim_create_user_command("PetsSleepToggle", function()
- pets.toggle_sleep()
+ pets.toggle_idle()
end, {})