summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua/ache/plugins/pets.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/lua/ache/plugins/pets.lua b/lua/ache/plugins/pets.lua
new file mode 100644
index 0000000..5c742b5
--- /dev/null
+++ b/lua/ache/plugins/pets.lua
@@ -0,0 +1,24 @@
+--[[
+-- This plugin add a little pet to your neovim.
+--
+-- Configured to add a little fox named foxy.
+--]]
+return {
+ "giusgad/pets.nvim",
+ dependencies = { "MunifTanjim/nui.nvim", "giusgad/hologram.nvim" },
+ config = function()
+ local pets = require("pets")
+ pets.setup({
+ row = 1, -- The row (height) to display the pet at (higher row means the pet is lower on the screen), must be 1<=row<=10
+ col = 0, -- The column to display the pet at (set to high number to have it stay still on the right side)
+ speed_multiplier = 1, -- You can make your pet move faster/slower. If slower the animation will have lower fps.
+ default_pet = "fox",
+ default_style = "red",
+ random = false,
+ })
+
+ pets.create_pet("foxy", "fox", "red")
+
+ vim.keymap.set("n", "<leader>pt", "<cmd>PetsHideToggle<CR>", { silent = true, desc = "Toggle pets" })
+ end,
+}