From 7695594edec9a9aaac5918286b639c3b172dea50 Mon Sep 17 00:00:00 2001 From: lpoto Date: Sat, 17 Jun 2023 15:16:21 +0200 Subject: [PATCH] Wrap text in telescope's previewer --- lua/telescope/_extensions/noice.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/telescope/_extensions/noice.lua b/lua/telescope/_extensions/noice.lua index 8d0b7c1..14a197e 100644 --- a/lua/telescope/_extensions/noice.lua +++ b/lua/telescope/_extensions/noice.lua @@ -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)