return { { 'CopilotC-Nvim/CopilotChat.nvim', event = 'VeryLazy', branch = 'canary', dependencies = { { 'zbirenbaum/copilot.lua' }, -- or github/copilot.vim { 'nvim-lua/plenary.nvim' }, -- for curl, log wrapper }, opts = {}, keys = { { 'ho', 'CopilotChat', mode = { 'n', 'v' }, desc = 'CopilotChat - Open' }, { 'he', 'CopilotChatExplain', mode = { 'n', 'v' }, desc = 'CopilotChat - Explain code' }, { 'hr', 'CopilotChatReview', mode = { 'n', 'v' }, desc = 'CopilotChat - Review code' }, -- { 'hR', 'CopilotChatRefactor', mode = { 'n', 'v' }, desc = 'CopilotChat - Refactor code' }, { 'hf', 'CopilotChatFixDiagnostic', -- Get a fix for the diagnostic message under the cursor. desc = 'CopilotChat - Fix diagnostic', }, { 'hr', 'CopilotChatReset', -- Reset chat history and clear buffer. desc = 'CopilotChat - Reset chat history and clear buffer', }, }, }, }