feat(view): add float.quit_on_focus_loss, float respects actions.open_file.quit_on_open (#1621)

This commit is contained in:
emmanueltouzery
2022-10-08 05:35:20 +02:00
committed by GitHub
parent be2b4f58e6
commit 79f631bc1d
4 changed files with 9 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ local overlay_bufnr = nil
local overlay_winnr = nil
local function remove_overlay()
if view.View.float.enable then
if view.View.float.enable and view.View.float.quit_on_focus_loss then
-- return to normal nvim-tree float behaviour when filter window is closed
a.nvim_create_autocmd("WinLeave", {
pattern = "NvimTree_*",