feat: auto close: avoid force user to press Enter key to exit
with `let g:lua_tree_auto_close = 1`, while closing the tree when it's the last window, neovim ask the user: "Press ENTER or type command to continue" this patch should fixup the problem
This commit is contained in:
parent
0862bcc08e
commit
1596536064
@ -154,7 +154,7 @@ end
|
||||
function M.on_leave()
|
||||
vim.defer_fn(function()
|
||||
if #api.nvim_list_wins() == 1 and lib.win_open() then
|
||||
api.nvim_command(':qa!')
|
||||
api.nvim_command(':silent qa!')
|
||||
end
|
||||
end, 50)
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user