Skip to content

Commit

Permalink
refactor: pets
Browse files Browse the repository at this point in the history
  • Loading branch information
rizkyilhampra committed Feb 11, 2024
1 parent 32187ca commit 4bec177
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions lua/aquila/plugins/pets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@ return {
dependencies = { "MunifTanjim/nui.nvim", "giusgad/hologram.nvim" },
config = function()
require("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 = "dog", -- the pet to use for the PetNew command
default_style = "brown", -- the style of the pet to use for the PetNew command
random = false, -- whether to use a random pet for the PetNew command, overrides default_pet and default_style
death_animation = true, -- animate the pet's death, set to false to feel less guilt -- currently no animations are available
popup = { -- popup options, try changing these if you see a rectangle around the pets
width = "30%", -- can be a string with percentage like "45%" or a number of columns like 45
winblend = 100, -- winblend value - see :h 'winblend' - only used if avoid_statusline is false
hl = { Normal = "Normal" }, -- hl is only set if avoid_statusline is true, you can put any hl group instead of "Normal"
avoid_statusline = true, -- if winblend is 100 then the popup is invisible and covers the statusline, if that
-- doesn't work for you then set this to true and the popup will use hl and will be spawned above the statusline (hopefully)
row = 1,
col = 0,
speed_multiplier = 1,
default_pet = "dog",
default_style = "brown",
random = false,
death_animation = true,
popup = {
width = "30%",
winblend = 100,
hl = { Normal = "Normal" },
avoid_statusline = true,
}
})
end
Expand Down

0 comments on commit 4bec177

Please sign in to comment.