diff --git a/README.md b/README.md index 18f43fa8..765b002b 100644 --- a/README.md +++ b/README.md @@ -379,6 +379,8 @@ Requires [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim) plug }, ``` +![image](https://github.com/CopilotC-Nvim/CopilotChat.nvim/assets/5115805/14360883-7535-4ee3-aca1-79f6c39f626b) + ### fzf-lua integration Requires [fzf-lua](https://github.com/ibhagwan/fzf-lua) plugin to be installed. @@ -406,6 +408,8 @@ Requires [fzf-lua](https://github.com/ibhagwan/fzf-lua) plugin to be installed. }, ``` +![image](https://github.com/CopilotC-Nvim/CopilotChat.nvim/assets/5115805/743455bb-9517-48a8-a7a1-81215dc3b747) + ## Roadmap (Wishlist) - Use vector encodings to automatically select code diff --git a/lua/CopilotChat/integrations/fzflua.lua b/lua/CopilotChat/integrations/fzflua.lua index e7081cba..0d185fad 100644 --- a/lua/CopilotChat/integrations/fzflua.lua +++ b/lua/CopilotChat/integrations/fzflua.lua @@ -19,7 +19,7 @@ function M.pick(pick_actions, config, opts) opts = vim.tbl_extend('force', { prompt = pick_actions.prompt .. '> ', preview = fzflua.shell.raw_preview_action_cmd(function(items) - return string.format('echo %s', pick_actions.actions[items[1]]) + return string.format('echo "%s"', pick_actions.actions[items[1]]) end), actions = { ['default'] = function(selected)