Add copilot chat and other nice things
This commit is contained in:
parent
bbda49daf5
commit
ba8725e5fe
5 changed files with 34 additions and 2 deletions
18
lua/custom/plugins/copilot-chat.lua
Normal file
18
lua/custom/plugins/copilot-chat.lua
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
return {
|
||||
{
|
||||
'CopilotC-Nvim/CopilotChat.nvim',
|
||||
dependencies = {
|
||||
{ 'nvim-lua/plenary.nvim', branch = 'master' },
|
||||
},
|
||||
build = 'make tiktoken',
|
||||
init = function()
|
||||
local map = vim.api.nvim_set_keymap
|
||||
local opts = { noremap = true, silent = true }
|
||||
|
||||
map('n', '<leader>ch', '<Cmd>CopilotChatToggle<CR>', opts)
|
||||
end,
|
||||
opts = {
|
||||
-- See Configuration section for options
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue