feat: added config.ui.wrap and improved wrapping when wrap=true. Fixes #422

This commit is contained in:
Folke Lemaitre 2023-01-19 08:45:27 +01:00
parent c389ad552b
commit d6fc848067
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
4 changed files with 21 additions and 5 deletions

View file

@ -127,13 +127,13 @@ function M:title()
if self.view.state.mode == mode.name then
if mode.name == "home" then
self:append(title, "LazyH1")
self:append(title, "LazyH1", { wrap = true })
else
self:append(title, "LazyButtonActive")
self:append(title, "LazyButtonActive", { wrap = true })
self:highlight({ ["%(.%)"] = "LazySpecial" })
end
else
self:append(title, "LazyButton")
self:append(title, "LazyButton", { wrap = true })
self:highlight({ ["%(.%)"] = "LazySpecial" })
end
self:append(" ")