refactor: easier to pass window options for floats

This commit is contained in:
Folke Lemaitre 2023-01-05 16:52:02 +01:00
parent d3b0d3e851
commit 13af39b83e
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
4 changed files with 62 additions and 49 deletions

View file

@ -26,7 +26,7 @@ function M.new(view)
local self = setmetatable({}, { __index = setmetatable(M, { __index = Text }) })
self.view = view
self.padding = 2
self.wrap = view.opts.win_opts.width
self.wrap = view.win_opts.width
return self
end