diff --git a/lua/lib/lib.lua b/lua/lib/lib.lua index 697a6114..eaa264f3 100644 --- a/lua/lib/lib.lua +++ b/lua/lib/lib.lua @@ -306,6 +306,9 @@ function M.open() api.nvim_command('setlocal '..opt) end + if M.Tree.loaded then + M.change_dir(vim.fn.getcwd()) + end renderer.draw(M.Tree, not M.Tree.loaded) M.Tree.loaded = true