aboutsummaryrefslogtreecommitdiff
path: root/lua/pets
diff options
context:
space:
mode:
Diffstat (limited to 'lua/pets')
-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 71eb4f4..7bf9d8c 100644
--- a/lua/pets/commands.lua
+++ b/lua/pets/commands.lua
@@ -8,6 +8,10 @@ vim.api.nvim_create_user_command("PetsKillAll", function()
pets.kill_all()
end, {})
+vim.api.nvim_create_user_command("PetsKill", function(input)
+ pets.kill_pet(input.args)
+end, { nargs = 1 })
+
vim.api.nvim_create_user_command("PetsList", function()
pets.list()
end, {})