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 59d22bb commit 901a3ecCopy full SHA for 901a3ec
lua/neo-tree/sources/filesystem/init.lua
@@ -261,7 +261,15 @@ M.setup = function(config, global_config)
261
require("neo-tree.sources.filesystem.lib.fs_watch").unwatch_all()
262
manager.subscribe(M.name, {
263
event = events.VIM_BUFFER_CHANGED,
264
- handler = wrap(manager.refresh),
+ handler = function(arg)
265
+ local afile = arg.afile or ""
266
+ local source = afile:match("^neo%-tree ([%l%-]+) %[%d+%]")
267
+ if source then
268
+ log.trace("Ignoring vim_buffer_changed event from " .. source)
269
+ return
270
+ end
271
+ manager.refresh(M.name)
272
+ end,
273
})
274
end
275
0 commit comments