Update avante config to use copilot

This commit is contained in:
2025-05-12 11:22:25 -04:00
parent 7715f07c34
commit 0d09d7334b
3 changed files with 90 additions and 67 deletions

View File

@@ -3,7 +3,10 @@ return {
event = "VeryLazy",
lazy = false,
opts = {
-- add any opts here
provider = "copilot", -- work is paying for this so it's free for me
copilot = {
model = "claude-3.7-sonnet",
},
},
keys = {
{
@@ -32,11 +35,13 @@ return {
},
build = "make",
dependencies = {
"nvim-treesitter/nvim-treesitter",
"stevearc/dressing.nvim",
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
--- The below dependencies are optional,
"nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
"zbirenbaum/copilot.lua", -- for providers='copilot'
{
-- support for image pasting
"HakonHarnes/img-clip.nvim",

View File

@@ -1,5 +1,9 @@
return {
"saghen/blink.cmp",
dependencies = {
-- For auto-completion in the avante window
"Kaiser-Yang/blink-cmp-avante",
},
opts = {
completion = {
trigger = {
@@ -7,5 +11,18 @@ return {
},
},
keymap = { preset = "super-tab" },
sources = {
-- Add 'avante' to the list
default = { "avante", "lsp", "path", "snippets", "buffer" },
providers = {
avante = {
module = "blink-cmp-avante",
name = "Avante",
opts = {
-- options for blink-cmp-avante
},
},
},
},
},
}