aboutsummaryrefslogtreecommitdiff
path: root/lua/pets/commands.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/pets/commands.lua')
-rw-r--r--lua/pets/commands.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/lua/pets/commands.lua b/lua/pets/commands.lua
index a240fc0..f521710 100644
--- a/lua/pets/commands.lua
+++ b/lua/pets/commands.lua
@@ -38,6 +38,9 @@ end, { nargs = 1, complete = utils.complete_typestyle })
vim.api.nvim_create_user_command("PetsKillAll", function()
pets.kill_all()
end, {})
+vim.api.nvim_create_user_command("PetsRemoveAll", function()
+ pets.remove_all()
+end, {})
vim.api.nvim_create_user_command("PetsKill", function(input)
pets.kill_pet(input.args)
@@ -45,6 +48,12 @@ end, {
nargs = 1,
complete = utils.complete_name,
})
+vim.api.nvim_create_user_command("PetsRemove", function(input)
+ pets.remove_pet(input.args)
+end, {
+ nargs = 1,
+ complete = utils.complete_name,
+})
vim.api.nvim_create_user_command("PetsList", function()
pets.list()