From ef893b523d366a0dde44b61d9cb327f2bea65f1d Mon Sep 17 00:00:00 2001 From: Morten Paulsen Date: Sat, 31 Oct 2020 20:30:17 +0100 Subject: [PATCH] g:lua_tree_quit_on_open respects preview --- lua/lib/lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lib/lib.lua b/lua/lib/lib.lua index 0a21fa9b..a53df524 100644 --- a/lua/lib/lib.lua +++ b/lua/lib/lib.lua @@ -202,7 +202,7 @@ function M.open_file(mode, filename) api.nvim_command('vertical resize '..M.Tree.win_width) M.win_focus(cur_win) 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() end end