Add main quit-on-open functionality
This commit is contained in:
parent
52d28143cb
commit
c496c8b9d9
@ -199,6 +199,9 @@ function M.open_file(mode, filename)
|
|||||||
M.win_focus()
|
M.win_focus()
|
||||||
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)
|
||||||
|
if vim.g.lua_tree_quit_on_open then
|
||||||
|
M.close()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.change_dir(foldername)
|
function M.change_dir(foldername)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user