aboutsummaryrefslogtreecommitdiff
path: root/lua/pets/commands.lua
diff options
context:
space:
mode:
authorGiuseppe Gadola <giusgadola@gmail.com>2023-02-07 18:20:11 +0100
committerGiuseppe Gadola <giusgadola@gmail.com>2023-02-10 16:05:59 +0100
commit9c16ec2e3887b90670c28cc845d0b2822bc4f704 (patch)
treed84167f4e0cd073bd87fb393d6bba6a0045e61be /lua/pets/commands.lua
parentstyle: change indentation to 4 spaces (diff)
feat: one pet walks
Diffstat (limited to 'lua/pets/commands.lua')
-rw-r--r--lua/pets/commands.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/pets/commands.lua b/lua/pets/commands.lua
index 8124cbc..a211d2d 100644
--- a/lua/pets/commands.lua
+++ b/lua/pets/commands.lua
@@ -1,9 +1,9 @@
local pets = require("pets")
vim.api.nvim_create_user_command("Pets", function()
- pets.show()
+ pets.show()
end, {}) -- use nargs = 1 to accept arguments
vim.api.nvim_create_user_command("PetsCloseAll", function()
- pets.closeAll()
+ pets.closeAll()
end, {})