Skip to content

Commit c7b0f47

Browse files
author
jghauser
committed
fix(search): copy entry_display from telescope before amending it
1 parent 3014915 commit c7b0f47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/papis/search/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if not has_telescope then
1010
log.error("The plugin telescope.nvim wasn't found but the search module is enabled and requires it.")
1111
return nil
1212
end
13-
local entry_display = require("telescope.pickers.entry_display")
13+
local entry_display = vim.deepcopy(require("telescope.pickers.entry_display"))
1414
entry_display.truncate = function(a) return a end -- HACK: there must better way to turn this off
1515
local config = require("papis.config")
1616
local commands = require("papis.commands")

0 commit comments

Comments
 (0)