From 59a4c29d3f8910c0546143d4668086179bf2e2be Mon Sep 17 00:00:00 2001 From: TLCooper4031 <58536802+TLCooper4031@users.noreply.github.com> Date: Sun, 4 May 2025 20:35:47 -0400 Subject: [PATCH] feat(copilot): add leader key cmd for copilot chat --- lua/custom/plugins/copilot.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lua/custom/plugins/copilot.lua b/lua/custom/plugins/copilot.lua index ffba2575..ea9e13f1 100644 --- a/lua/custom/plugins/copilot.lua +++ b/lua/custom/plugins/copilot.lua @@ -15,9 +15,13 @@ return { mapping = 'apwa', description = 'Copilot: Write Atomic Note', }, + -- You can add more prompts here }, - -- You can add more prompts here }, + config = function(_, opts) + require('CopilotChat').setup(opts) + vim.api.nvim_set_keymap('n', 'ac', ':CopilotChat', { noremap = true, silent = true }) + end, -- See Commands section for default commands if you want to lazy load on them }, }