Skip to content

Commit

Permalink
fix: previewer = true (#2395)
Browse files Browse the repository at this point in the history
  • Loading branch information
Conni2461 authored Feb 20, 2023
1 parent f40e3e2 commit 3915d93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/telescope/pickers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1420,6 +1420,8 @@ pickers.new = function(opts, defaults)
if result["previewer"] == false then
result["previewer"] = defaults["previewer"]
result["__hide_previewer"] = true
elseif result["previewer"] == true then
result["previewer"] = defaults["previewer"]
elseif type(opts["preview"]) == "table" and opts["preview"]["hide_on_startup"] then
result["__hide_previewer"] = true
end
Expand Down

0 comments on commit 3915d93

Please sign in to comment.