Update avante config to use copilot
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user