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 e7d1b7d commit d87dc22Copy full SHA for d87dc22
lua/nvim-tree.lua
@@ -242,6 +242,9 @@ local function setup_autocommands(opts)
242
pattern = "*",
243
---@param ev vim.api.keyset.create_autocmd.callback_args
244
callback = function(ev)
245
+ if not vim.api.nvim_buf_is_valid(ev.buf) then
246
+ return
247
+ end
248
if vim.api.nvim_get_option_value("filetype", { buf = ev.buf }) == "NvimTree" then
249
require("nvim-tree.events")._dispatch_on_tree_close()
250
end
0 commit comments