feat(ui): added support for setting a title of the lazy window. Fixes #814

This commit is contained in:
Folke Lemaitre 2023-05-27 14:28:09 +02:00
parent 97c2f8858c
commit 9dce0816f1
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
4 changed files with 15 additions and 3 deletions

View file

@ -50,7 +50,10 @@ end
function M.create()
local self = setmetatable({}, { __index = setmetatable(M, { __index = Float }) })
---@cast self LazyView
Float.init(self)
Float.init(self, {
title = Config.options.ui.title,
title_pos = Config.options.ui.title_pos,
})
if Config.options.ui.wrap then
vim.wo[self.win].wrap = true