Use avante instead of copilot chat
This commit is contained in:
parent
fcbf7c2873
commit
4a6324122a
2 changed files with 53 additions and 65 deletions
45
lua/custom/plugins/avante.lua
Normal file
45
lua/custom/plugins/avante.lua
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
return {
|
||||
'yetone/avante.nvim',
|
||||
event = 'VeryLazy',
|
||||
version = '*',
|
||||
opts = {
|
||||
provider = 'copilot',
|
||||
copilot = {
|
||||
endpoint = 'https://api.githubcopilot.com',
|
||||
model = 'gpt-4o-2024-08-06',
|
||||
proxy = nil,
|
||||
allow_insecure = false,
|
||||
timeout = 30000,
|
||||
temperature = 0,
|
||||
max_tokens = 4096,
|
||||
},
|
||||
},
|
||||
build = 'make',
|
||||
dependencies = {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
'stevearc/dressing.nvim',
|
||||
'nvim-lua/plenary.nvim',
|
||||
'MunifTanjim/nui.nvim',
|
||||
{
|
||||
'HakonHarnes/img-clip.nvim',
|
||||
event = 'VeryLazy',
|
||||
opts = {
|
||||
default = {
|
||||
embed_image_as_base64 = false,
|
||||
prompt_for_file_name = false,
|
||||
drag_and_drop = {
|
||||
insert_mode = true,
|
||||
},
|
||||
use_absolute_path = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
'MeanderingProgrammer/render-markdown.nvim',
|
||||
opts = {
|
||||
file_types = { 'markdown', 'Avante' },
|
||||
},
|
||||
ft = { 'markdown', 'Avante' },
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue