From 8ee3958d1a0958917ecb3f7481e369bb62e8ddb3 Mon Sep 17 00:00:00 2001 From: Giuseppe Gadola Date: Fri, 10 Feb 2023 17:47:42 +0100 Subject: feat(pets): ability to kill pets by name --- lua/pets/commands.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lua/pets') 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, {}) -- cgit v1.3-2-g11bf