mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 03:24:13 +00:00
fix(ui): set wo options with local. don't use vim.wo
. See #829
This commit is contained in:
parent
678179543e
commit
7f4da7d511
3 changed files with 22 additions and 14 deletions
|
@ -57,12 +57,11 @@ function M.create()
|
|||
})
|
||||
|
||||
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"
|
||||
Util.wo(self.win, "wrap", true)
|
||||
Util.wo(self.win, "linebreak", true)
|
||||
Util.wo(self.win, "breakindent", true)
|
||||
else
|
||||
vim.wo[self.win].wrap = false
|
||||
Util.wo(self.win, "wrap", false)
|
||||
end
|
||||
|
||||
self.state = vim.deepcopy(default_state)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue