Skip to content

Commit

Permalink
fix: pass opts to actions.preview
Browse files Browse the repository at this point in the history
  • Loading branch information
vex9z7 committed Oct 24, 2024
1 parent 39dbf87 commit 57ce194
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/oil/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ M.select_tab = {

M.preview = {
desc = "Open the entry under the cursor in a preview window, or close the preview window if already open",
callback = function()
callback = function(opts)
local entry = oil.get_cursor_entry()
if not entry then
vim.notify("Could not find entry under cursor", vim.log.levels.ERROR)
Expand All @@ -88,7 +88,7 @@ M.preview = {
return
end
end
oil.open_preview()
oil.open_preview(opts)
end,
}

Expand Down

0 comments on commit 57ce194

Please sign in to comment.