We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 802bc08 commit 4cc2abeCopy full SHA for 4cc2abe
lua/nvim-tree/view.lua
@@ -131,7 +131,7 @@ function M.setup()
131
for _, opt in ipairs(M.View.bufopts) do
132
vim.bo[M.View.bufnr][opt.name] = opt.val
133
end
134
-
+
135
vim.cmd "augroup NvimTreeView"
136
vim.cmd "au!"
137
vim.cmd "au BufWinEnter,BufWinLeave * lua require'nvim-tree.view'._prevent_buffer_override()"
@@ -294,6 +294,10 @@ end
294
295
function M.open(options)
296
options = options or { focus_tree = true }
297
+ if not a.nvim_buf_is_valid(M.View.bufnr) then
298
+ HAS_LOADED = false
299
+ end
300
301
if not HAS_LOADED then
302
M.setup()
303
HAS_LOADED = true
0 commit comments