From 1499360359a8b54c6a56768cc8af1949436568f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sindre=20T=2E=20Str=C3=B8m?= Date: Wed, 26 May 2021 09:56:15 +0200 Subject: [PATCH] fix(lib): Refresh tree if it was opened before init. (#399) --- lua/nvim-tree/lib.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/nvim-tree/lib.lua b/lua/nvim-tree/lib.lua index 55084539..81336d8b 100644 --- a/lua/nvim-tree/lib.lua +++ b/lua/nvim-tree/lib.lua @@ -34,6 +34,8 @@ function M.init(with_open, with_reload) if with_open then M.open() + elseif view.win_open() then + M.refresh_tree() end if with_reload then