Skip to content

Commit 64a0440

Browse files
committed
perf(#3284): re-draw instead of refreshing the tree when a buffer is modified
1 parent c988e28 commit 64a0440

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree/explorer/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ function Explorer:create_autocmds()
187187
callback = function()
188188
utils.debounce("Buf:modified_" .. self.uid_explorer, self.opts.view.debounce_delay, function()
189189
buffers.reload_modified()
190-
self:reload_explorer()
190+
self.renderer:draw()
191191
end)
192192
end,
193193
})

0 commit comments

Comments
 (0)