fix: do not run refresh if vim.v.exiting is set
This commit is contained in:
@@ -122,10 +122,10 @@ end
|
|||||||
function M.refresh_tree()
|
function M.refresh_tree()
|
||||||
vim.schedule(
|
vim.schedule(
|
||||||
function ()
|
function ()
|
||||||
-- local stat = luv.fs_stat(M.Tree.cwd)
|
if vim.v.exiting ~= nil then return end
|
||||||
-- if stat.mtime.sec ~= M.Tree.last_modified then
|
|
||||||
refresh_nodes(M.Tree)
|
refresh_nodes(M.Tree)
|
||||||
-- end
|
|
||||||
if config.get_icon_state().show_git_icon or vim.g.nvim_tree_git_hl then
|
if config.get_icon_state().show_git_icon or vim.g.nvim_tree_git_hl then
|
||||||
git.reload_roots()
|
git.reload_roots()
|
||||||
refresh_git(M.Tree)
|
refresh_git(M.Tree)
|
||||||
|
|||||||
Reference in New Issue
Block a user