From 54ac05c60a6945929eb964f18a49c7f4568f781e Mon Sep 17 00:00:00 2001 From: ache Date: Wed, 26 Feb 2025 14:09:51 +0100 Subject: Add a 🦊 to my nvim MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/ache/plugins/pets.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lua/ache/plugins/pets.lua 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", "pt", "PetsHideToggle", { silent = true, desc = "Toggle pets" }) + end, +} -- cgit v1.3-2-g11bf