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,