diff options
Diffstat (limited to 'lua/pets/pet.lua')
| -rw-r--r-- | lua/pets/pet.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lua/pets/pet.lua b/lua/pets/pet.lua index e5dca4d..424f138 100644 --- a/lua/pets/pet.lua +++ b/lua/pets/pet.lua @@ -31,8 +31,15 @@ function M.Pet.new(name, type, style, row, col) local wd = debug.getinfo(1).source:sub(2):match("(.*nvim/)") .. "media/" instance.sourcedir = wd .. type .. "/" .. style .. "/" - instance.animation = require("pets.animations").Animation.new(instance.sourcedir, type, style, row, col) instance.popup = require("nui.popup")(popup_opts) + instance.animation = require("pets.animations").Animation.new( + instance.sourcedir, + type, + style, + row, + col, + instance.popup.win_config.width + ) return instance end |