added copilotchat
This commit is contained in:
37
lua/plugins/copilotChat.lua
Normal file
37
lua/plugins/copilotChat.lua
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
return {
|
||||||
|
{
|
||||||
|
'CopilotC-Nvim/CopilotChat.nvim',
|
||||||
|
dependencies = {
|
||||||
|
{ 'nvim-lua/plenary.nvim', branch = 'master' },
|
||||||
|
},
|
||||||
|
build = 'make tiktoken',
|
||||||
|
opts = {
|
||||||
|
-- See Configuration section for options
|
||||||
|
},
|
||||||
|
cmd = {
|
||||||
|
'CopilotChat',
|
||||||
|
'CopilotChatOpen',
|
||||||
|
'CopilotChatClose',
|
||||||
|
'CopilotChatToggle',
|
||||||
|
'CopilotChatStop',
|
||||||
|
'CopilotChatReset',
|
||||||
|
'CopilotChatSave',
|
||||||
|
'CopilotChatLoad',
|
||||||
|
'CopilotChatPrompts',
|
||||||
|
'CopilotChatModels',
|
||||||
|
'CopilotChat',
|
||||||
|
},
|
||||||
|
keys = {
|
||||||
|
{ '<leader>xx', '<cmd>CopilotChatToggle<cr>', desc = 'Copilot Chat' },
|
||||||
|
{ '<leader>xC', '<cmd>CopilotChatOpen<cr>', desc = 'Copilot Chat Open' },
|
||||||
|
{ '<leader>xX', '<cmd>CopilotChatClose<cr>', desc = 'Copilot Chat Close' },
|
||||||
|
{ '<leader>xt', '<cmd>CopilotChatToggle<cr>', desc = 'Copilot Chat Toggle' },
|
||||||
|
{ '<leader>xs', '<cmd>CopilotChatStop<cr>', desc = 'Copilot Chat Stop' },
|
||||||
|
{ '<leader>xX', '<cmd>CopilotChatReset<cr>', desc = 'Copilot Chat Reset' },
|
||||||
|
{ '<leader>xw', '<cmd>CopilotChatSave<cr>', desc = 'Copilot Chat Save' },
|
||||||
|
{ '<leader>xl', '<cmd>CopilotChatLoad<cr>', desc = 'Copilot Chat Load' },
|
||||||
|
{ '<leader>cp', '<cmd>CopilotChatPrompts<cr>', desc = 'Copilot Chat Prompts' },
|
||||||
|
{ '<leader>cm', '<cmd>CopilotChatModels<cr>', desc = 'Copilot Chat Models' },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user