g:lua_tree_quit_on_open respects preview
This commit is contained in:
parent
0602058af5
commit
ef893b523d
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user