From 57ce19407f86d24e278364748896553379b8c2c1 Mon Sep 17 00:00:00 2001 From: vex9z7 Date: Thu, 24 Oct 2024 16:34:08 +0900 Subject: [PATCH] fix: pass opts to actions.preview --- lua/oil/actions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/oil/actions.lua b/lua/oil/actions.lua index 6a2a5ffe..79709d63 100644 --- a/lua/oil/actions.lua +++ b/lua/oil/actions.lua @@ -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) @@ -88,7 +88,7 @@ M.preview = { return end end - oil.open_preview() + oil.open_preview(opts) end, }