fix(picker): do not select floating windows

This commit is contained in:
kiyan
2021-06-28 20:31:15 +02:00
parent a59a4120a4
commit ed7f3851d1

View File

@@ -242,7 +242,10 @@ function M.pick_window()
end
local win_config = api.nvim_win_get_config(id)
return id ~= tree_winid and win_config.focusable
return id ~= tree_winid
and win_config.focusable
and not win_config.external
and not win_config.relative
end, win_ids)
-- If there are no selectable windows: return. If there's only 1, return it without picking.