mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat: added config.ui.wrap
and improved wrapping when wrap=true. Fixes #422
This commit is contained in:
parent
c389ad552b
commit
d6fc848067
4 changed files with 21 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue