diff options
| author | Giuseppe Gadola <giusgadola@gmail.com> | 2023-02-10 13:32:41 +0100 |
|---|---|---|
| committer | Giuseppe Gadola <giusgadola@gmail.com> | 2023-02-10 16:05:59 +0100 |
| commit | 4128e340c5779763dd809b2242e1ccea456b20f0 (patch) | |
| tree | d42db05b7f93e110fd735acf8c67d327b1662f07 /lua/pets/commands.lua | |
| parent | fix(animations): fixed invalid buffer id (diff) | |
feat(commands): added the list pets command
Diffstat (limited to 'lua/pets/commands.lua')
| -rw-r--r-- | lua/pets/commands.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lua/pets/commands.lua b/lua/pets/commands.lua index 8c521cd..71eb4f4 100644 --- a/lua/pets/commands.lua +++ b/lua/pets/commands.lua @@ -1,9 +1,13 @@ local pets = require("pets") vim.api.nvim_create_user_command("PetsNew", function(input) - pets.create_pet(input.args, "cat", "brown") + pets.create_pet(input.args, "cat", "light_grey") end, { nargs = 1 }) vim.api.nvim_create_user_command("PetsKillAll", function() pets.kill_all() end, {}) + +vim.api.nvim_create_user_command("PetsList", function() + pets.list() +end, {}) |