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

@ -52,6 +52,15 @@ function M.create()
---@cast self LazyView
Float.init(self)
if Config.options.ui.wrap then
vim.wo[self.win].wrap = true
vim.wo[self.win].linebreak = true
vim.wo[self.win].breakindent = true
-- vim.wo[self.win].breakindentopt = "shift:8"
else
vim.wo[self.win].wrap = false
end
require("lazy.view.colors").setup()
self.state = vim.deepcopy(default_state)