From da8b3d485975a8727bea127518b65c980521ae22 Mon Sep 17 00:00:00 2001 From: Arne Van Maele <93863978+arnevm123@users.noreply.github.com> Date: Fri, 12 Jan 2024 04:53:31 +0100 Subject: [PATCH] feat(builtin.oldfiles): support file location opening (#2863) --- lua/telescope/builtin/__internal.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/telescope/builtin/__internal.lua b/lua/telescope/builtin/__internal.lua index 5873e07..dc4d1d8 100644 --- a/lua/telescope/builtin/__internal.lua +++ b/lua/telescope/builtin/__internal.lua @@ -560,12 +560,13 @@ internal.oldfiles = function(opts) pickers .new(opts, { prompt_title = "Oldfiles", + __locations_input = true, finder = finders.new_table { results = results, entry_maker = opts.entry_maker or make_entry.gen_from_file(opts), }, sorter = conf.file_sorter(opts), - previewer = conf.file_previewer(opts), + previewer = conf.grep_previewer(opts), }) :find() end