refacto: remove rendering from lib.init

This commit is contained in:
kiyan
2022-02-20 23:01:25 +01:00
parent 9008bac180
commit 58b81ed9e6
3 changed files with 11 additions and 9 deletions

View File

@@ -30,8 +30,12 @@ function M.force_dirchange(foldername, with_open)
vim.cmd('lcd '..vim.fn.fnameescape(foldername))
end
end
require'nvim-tree.lib'.init(with_open, foldername)
require"nvim-tree.renderer".draw()
require'nvim-tree.lib'.init(foldername)
if with_open then
require"nvim-tree.lib".open()
else
require"nvim-tree.renderer".draw()
end
end
function M.setup(options)