fix: ensure win_options are being set on correct window (#469)
* Added check for filetype before setting win_options in initialize * refactor: use nvim_buf_call to set window options --------- Co-authored-by: Steven Arcangeli <506791+stevearc@users.noreply.github.com>
This commit is contained in:
parent
0fcd1263a2
commit
30e0438ff0
1 changed files with 2 additions and 1 deletions
|
|
@ -333,7 +333,8 @@ M.initialize = function(bufnr)
|
|||
for k, v in pairs(config.buf_options) do
|
||||
vim.bo[bufnr][k] = v
|
||||
end
|
||||
M.set_win_options()
|
||||
vim.api.nvim_buf_call(bufnr, M.set_win_options)
|
||||
|
||||
vim.api.nvim_create_autocmd("BufHidden", {
|
||||
desc = "Delete oil buffers when no longer in use",
|
||||
group = "Oil",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue