From 326fddd92702ccc618a26be6b3b74c9d22b3219c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Guimar=C3=A3es?= Date: Tue, 28 Jan 2025 09:40:59 -0300 Subject: [PATCH] Update lua/lazyvim/plugins/extras/ai/avante.lua Co-authored-by: PatMulligan <43773168+PatMulligan@users.noreply.github.com> --- lua/lazyvim/plugins/extras/ai/avante.lua | 36 ++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/lua/lazyvim/plugins/extras/ai/avante.lua b/lua/lazyvim/plugins/extras/ai/avante.lua index eb249859..01763c98 100644 --- a/lua/lazyvim/plugins/extras/ai/avante.lua +++ b/lua/lazyvim/plugins/extras/ai/avante.lua @@ -28,6 +28,42 @@ return { }, build = LazyVim.is_win() and "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" or "make", }, + { + "saghen/blink.cmp", + lazy = true, + opts = { + sources = { + default = { "avante_commands", "avante_mentions", "avante_files" }, + compat = { + "avante_commands", + "avante_mentions", + "avante_files", + }, + -- LSP score_offset is typically 60 + providers = { + avante_commands = { + name = "avante_commands", + module = "blink.compat.source", + score_offset = 90, + opts = {}, + }, + avante_files = { + name = "avante_files", + module = "blink.compat.source", + score_offset = 100, + opts = {}, + }, + avante_mentions = { + name = "avante_mentions", + module = "blink.compat.source", + score_offset = 1000, + opts = {}, + }, + }, + }, + }, + }, + { "MeanderingProgrammer/render-markdown.nvim", optional = true,