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

@@ -267,7 +267,7 @@ function M.fn(mode, filename)
end
function M.setup(opts)
M.quit_on_open = opts.actions.open_file.quit_on_open or opts.view.float.enable
M.quit_on_open = opts.actions.open_file.quit_on_open
M.resize_window = opts.actions.open_file.resize_window
if opts.actions.open_file.window_picker.chars then
opts.actions.open_file.window_picker.chars = tostring(opts.actions.open_file.window_picker.chars):upper()