Skip to content

Commit 55028e3

Browse files
authored
fix(#1942): nvim-tree window options do not trigger OptionSet event (#1945)
1 parent 9e87ee2 commit 55028e3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lua/nvim-tree/view.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,12 @@ end
126126

127127
local function set_window_options_and_buffer()
128128
pcall(vim.cmd, "buffer " .. M.get_bufnr())
129+
local eventignore = vim.opt.eventignore:get()
130+
vim.opt.eventignore = "all"
129131
for k, v in pairs(M.View.winopts) do
130132
vim.opt_local[k] = v
131133
end
134+
vim.opt.eventignore = eventignore
132135
end
133136

134137
local function open_win_config()

0 commit comments

Comments
 (0)