Skip to content

Config not working for row or col #6

@dysfungi

Description

@dysfungi

Description

Configuring either row or col does not change position of animation. I have tried various configurations, but row and col are never respected except when I set row = 10, then the animation disappears entirely. Other config values are respected such as default_pet and random.

Steps to reproduce

  1. pets.nvim is configured with Lazy
  2. In an after plugin Lua file:
    if package.loaded['pets'] then
      vim.cmd.PetsNew 'Dino'
    end
    

Your options

Config works for default_pet, default_style, and random:

{
  'giusgad/pets.nvim',
  cond = no_tmux_session = vim.env.TMUX == nil,
  dependencies = {
    'MunifTanjim/nui.nvim',
    {
      'giusgad/hologram.nvim',
      opts = {
        auto_display = true,
      },
    },
  },
  opts = {
    default_pet = 'dog',
    default_style = 'gray',
    random = false,
  },
}

Config does not work for col/row within bounds:

{
  'giusgad/pets.nvim',
  cond = no_tmux_session = vim.env.TMUX == nil,
  dependencies = {
    'MunifTanjim/nui.nvim',
    {
      'giusgad/hologram.nvim',
      opts = {
        auto_display = true,
      },
    },
  },
  opts = {
    default_pet = 'dog',
    default_style = 'black',
    random = false,
    col = 10,
    row = 5,
  },
}

Config breaks showing animation for row = 10 at edge of bound:

{
  'giusgad/pets.nvim',
  cond = no_tmux_session = vim.env.TMUX == nil,
  dependencies = {
    'MunifTanjim/nui.nvim',
    {
      'giusgad/hologram.nvim',
      opts = {
        auto_display = true,
      },
    },
  },
  opts = {
    default_pet = 'dog',
    default_style = 'beige',
    random = false,
    col = 10,
    row = 10,
  },
}

Screenshots

Config works for default_pet, default_style, and random:
Image

Config does not work work for col/row within bounds:
Image

Config breaks showing animation for row = 10 at edge of bound:
Image

Extra

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions