g:lua_tree_quit_on_open respects preview

This commit is contained in:
Morten Paulsen 2020-10-31 20:30:17 +01:00 committed by Kiyan
parent 0602058af5
commit ef893b523d

View File

@ -202,7 +202,7 @@ function M.open_file(mode, filename)
api.nvim_command('vertical resize '..M.Tree.win_width) api.nvim_command('vertical resize '..M.Tree.win_width)
M.win_focus(cur_win) M.win_focus(cur_win)
end end
if vim.g.lua_tree_quit_on_open == 1 then if vim.g.lua_tree_quit_on_open == 1 and mode ~= 'preview' then
M.close() M.close()
end end
end end