This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / tools / astronvim / config / lua / plugins / copilot-chat.lua
1.8 kB 58 lines
1return 2{ 3 "CopilotC-Nvim/CopilotChat.nvim", 4 branch = "canary", 5 dependencies = { 6 { "zbirenbaum/copilot.lua" }, -- or github/copilot.vim 7 { "nvim-lua/plenary.nvim" }, -- for curl, log wrapper 8 }, 9 lazy = false, 10 keys = function() 11 local select = require "CopilotChat.select" 12 local telescope = require "CopilotChat.integrations.telescope" 13 local actions = require "CopilotChat.actions" 14 15 return { 16 { 17 "<leader>ccq", 18 function() 19 local input = vim.fn.input "Quick Chat: " 20 if input ~= "" then require("CopilotChat").ask(input, { selection = select.buffer }) end 21 end, 22 desc = "CopilotChat - Quick chat", 23 }, 24 { 25 "<leader>ccq", 26 function() 27 local input = vim.fn.input "Quick Chat: " 28 if input ~= "" then require("CopilotChat").ask(input, { selection = select.visual }) end 29 end, 30 desc = "CopilotChat - Quick chat", 31 mode = "v", 32 }, 33 { 34 "<leader>cch", 35 function() telescope.pick(actions.help_actions(), { selection = select.buffer }) end, 36 desc = "CopilotChat - Help actions", 37 }, 38 { 39 "<leader>cch", 40 function() telescope.pick(actions.help_actions(), { selection = select.visual }) end, 41 desc = "CopilotChat - Help actions", 42 mode = "v", 43 }, 44 { 45 "<leader>ccp", 46 function() telescope.pick(actions.prompt_actions(), { selection = select.visual }) end, 47 desc = "CopilotChat - Prompt actions", 48 }, 49 { 50 "<leader>ccp", 51 function() telescope.pick(actions.prompt_actions(), { selection = select.visual }) end, 52 desc = "CopilotChat - Prompt actions", 53 mode = "v", 54 }, 55 } 56 end, 57 opts = {}, 58}