Skip to content

Commit

Permalink
fix(telescope): enable wrap on preview (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddean-dev authored Feb 17, 2024
1 parent 8836014 commit 5371f4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/telescope/_extensions/notify.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ local telescope_notifications = function(opts)
define_preview = function(self, entry, status)
local notification = entry.value
local max_width = vim.api.nvim_win_get_config(status.preview_win).width
vim.api.nvim_win_set_option(status.preview_win, "wrap", true)
notify.open(notification, { buffer = self.state.bufnr, max_width = max_width })
end,
}),
Expand Down

0 comments on commit 5371f4b

Please sign in to comment.