From 760d291e9c2a0e19ef2882ee77a87e5571ee532f Mon Sep 17 00:00:00 2001 From: Tomas Janousek Date: Wed, 6 Nov 2024 01:56:09 +0000 Subject: [PATCH] fix(fzflua): Wrap long lines in preview --- lua/CopilotChat/integrations/fzflua.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/CopilotChat/integrations/fzflua.lua b/lua/CopilotChat/integrations/fzflua.lua index 41b16fd..ad42345 100644 --- a/lua/CopilotChat/integrations/fzflua.lua +++ b/lua/CopilotChat/integrations/fzflua.lua @@ -18,6 +18,11 @@ function M.pick(pick_actions, opts) preview = function(items) return pick_actions.actions[items[1]].prompt end, + winopts = { + preview = { + wrap = 'wrap', + }, + }, actions = { ['default'] = function(selected) if not selected or vim.tbl_isempty(selected) then