diff options
| author | Giuseppe Gadola <giusgadola@gmail.com> | 2023-03-14 08:52:18 +0100 |
|---|---|---|
| committer | Giuseppe Gadola <giusgadola@gmail.com> | 2023-03-14 08:52:18 +0100 |
| commit | 207bfb97158b578a6d10bff13e4feeb0882485e2 (patch) | |
| tree | c5c84ee4ae298b75acd4d707d65b15181dbbf6e9 /lua/pets/commands.lua | |
| parent | feat(pets): add split_die animation for slime (diff) | |
feat(commands): added `PetsRemove` and `PetsRemoveAll`
Diffstat (limited to 'lua/pets/commands.lua')
| -rw-r--r-- | lua/pets/commands.lua | 9 |
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() |