feat(copilot): add leader key cmd for copilot chat

This commit is contained in:
TLCooper4031 2025-05-04 20:35:47 -04:00
parent 0963e7ca28
commit 59a4c29d3f
1 changed files with 5 additions and 1 deletions

View File

@ -15,9 +15,13 @@ return {
mapping = '<leader>apwa',
description = 'Copilot: Write Atomic Note',
},
},
-- You can add more prompts here
},
},
config = function(_, opts)
require('CopilotChat').setup(opts)
vim.api.nvim_set_keymap('n', '<leader>ac', ':CopilotChat<CR>', { noremap = true, silent = true })
end,
-- See Commands section for default commands if you want to lazy load on them
},
}