Skip to content

Commit

Permalink
fix(telescope): wrap text in telescope's previewer (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpoto authored Jun 19, 2023
1 parent a331860 commit a7f611e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/telescope/_extensions/noice.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ function M.previewer()
return previewers.new_buffer_previewer({
title = "Message",
define_preview = function(self, entry, _status)
vim.api.nvim_win_set_option(self.state.winid, "wrap", true)

---@type NoiceMessage
local message = Format.format(entry.message, "telescope_preview")
message:render(self.state.bufnr, Config.ns)
Expand Down

0 comments on commit a7f611e

Please sign in to comment.