diff options
| author | Giuseppe Gadola <giusgadola@gmail.com> | 2023-01-31 11:56:48 +0100 |
|---|---|---|
| committer | Giuseppe Gadola <giusgadola@gmail.com> | 2023-02-10 16:05:59 +0100 |
| commit | 9b791d88c67b9ad0293e0b45783de7219e2bd133 (patch) | |
| tree | 2ea17f721cce9e5607f9ba4fd884d6807d1d6db4 /lua/pets/commands.lua | |
| parent | docs: todo with some things (diff) | |
feat: toggle/multiple instances
Ability to spawn multiple popups simultanuosly and close them.
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 new file mode 100644 index 0000000..8124cbc --- /dev/null +++ b/lua/pets/commands.lua @@ -0,0 +1,9 @@ +local pets = require("pets") + +vim.api.nvim_create_user_command("Pets", function() + pets.show() +end, {}) -- use nargs = 1 to accept arguments + +vim.api.nvim_create_user_command("PetsCloseAll", function() + pets.closeAll() +end, {}) |