mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
fix(win): update opts.wo for padding instead of vim.wo directly
This commit is contained in:
parent
736ce447e8
commit
446f50208f
1 changed files with 7 additions and 2 deletions
|
@ -499,9 +499,14 @@ function M:show()
|
|||
end
|
||||
|
||||
function M:add_padding()
|
||||
self.opts.wo.statuscolumn = " "
|
||||
local listchars = vim.split(self.opts.wo.listchars or "", ",")
|
||||
listchars = vim.tbl_filter(function(s)
|
||||
return not s:find("eol:")
|
||||
end, listchars)
|
||||
table.insert(listchars, "eol: ")
|
||||
self.opts.wo.listchars = table.concat(listchars, ",")
|
||||
self.opts.wo.list = true
|
||||
self.opts.wo.listchars = ("eol: ," .. (self.opts.wo.listchars or "")):gsub(",$", "")
|
||||
self.opts.wo.statuscolumn = " "
|
||||
end
|
||||
|
||||
function M:is_floating()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue