diff options
| author | ache <ache@ache.one> | 2025-02-26 14:09:51 +0100 |
|---|---|---|
| committer | ache <ache@ache.one> | 2025-02-26 14:09:51 +0100 |
| commit | 54ac05c60a6945929eb964f18a49c7f4568f781e (patch) | |
| tree | 9b9f6c8721d45b82c41bd93da2c5525ea34dc750 /lua/ache/plugins | |
| parent | Add a plugin to scroll past the last line (diff) | |
Add a 🦊 to my nvim
Diffstat (limited to 'lua/ache/plugins')
| -rw-r--r-- | lua/ache/plugins/pets.lua | 24 |
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, +} |