refactor: use more modern methods for getting/setting options
This commit is contained in:
parent
0bfa381307
commit
d27bfa1f37
5 changed files with 14 additions and 22 deletions
|
|
@ -59,7 +59,7 @@ function Progress:show(opts)
|
|||
})
|
||||
vim.bo[self.bufnr].filetype = "oil_progress"
|
||||
for k, v in pairs(config.preview.win_options) do
|
||||
vim.api.nvim_win_set_option(self.winid, k, v)
|
||||
vim.wo[self.winid][k] = v
|
||||
end
|
||||
table.insert(
|
||||
self.autocmds,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue