diff options
| author | Giuseppe Gadola <giusgadola@gmail.com> | 2023-02-10 17:47:42 +0100 |
|---|---|---|
| committer | Giuseppe Gadola <giusgadola@gmail.com> | 2023-02-10 17:47:42 +0100 |
| commit | 8ee3958d1a0958917ecb3f7481e369bb62e8ddb3 (patch) | |
| tree | 1f6d20fdda804ae77b91548b03c757ffceae2970 /lua/pets | |
| parent | refactor(pets): pets table is now indexed by name (diff) | |
feat(pets): ability to kill pets by name
Diffstat (limited to 'lua/pets')
| -rw-r--r-- | lua/pets/commands.lua | 4 |
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, {}) |