fix: stop using vim.wo to set window options
vim.wo also affects the global status of the option. We only want to set the window-local option.
This commit is contained in:
parent
59dc12a978
commit
6f8bf067c0
5 changed files with 16 additions and 8 deletions
|
|
@ -107,7 +107,7 @@ M.show = vim.schedule_wrap(function(actions, should_confirm, cb)
|
|||
vim.bo[bufnr].filetype = "oil_preview"
|
||||
vim.bo[bufnr].syntax = "oil_preview"
|
||||
for k, v in pairs(config.preview.win_options) do
|
||||
vim.wo[winid][k] = v
|
||||
vim.api.nvim_set_option_value(k, v, { scope = "local", win = winid })
|
||||
end
|
||||
|
||||
render_lines(winid, bufnr, lines)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue