feat(neovim): enable blink-cmp-avante in blink.cmp

This commit is contained in:
João Paulo Dubas 2025-05-28 17:42:38 +00:00
parent d51feb9428
commit 6eefce2d6f
Signed by: joao.dubas
SSH Key Fingerprint: SHA256:V1mixgOGRc/YMhGx/DNkOSmJxgA2vHNrDZEk3wt/kOA

View File

@ -1,5 +1,5 @@
diff --git a/init.lua b/init.lua
index b98ffc6..f0cf036 100644
index b98ffc6..8013e25 100644
--- a/init.lua
+++ b/init.lua
@@ -91,7 +91,7 @@ vim.g.mapleader = ' '
@ -156,23 +156,28 @@ index b98ffc6..f0cf036 100644
require('lspconfig')[server_name].setup(server)
end,
},
@@ -809,6 +893,8 @@ require('lazy').setup({
@@ -809,6 +893,9 @@ require('lazy').setup({
opts = {},
},
'folke/lazydev.nvim',
+ 'saghen/blink.compat',
+ 'supermaven-inc/supermaven-nvim',
+ 'Kaiser-Yang/blink-cmp-avante',
},
--- @module 'blink.cmp'
--- @type blink.cmp.Config
@@ -854,9 +940,15 @@ require('lazy').setup({
@@ -854,9 +941,19 @@ require('lazy').setup({
},
sources = {
- default = { 'lsp', 'path', 'snippets', 'lazydev' },
+ default = { 'lsp', 'path', 'snippets', 'lazydev', 'supermaven' },
+ default = { 'avante', 'lsp', 'path', 'snippets', 'lazydev', 'supermaven' },
providers = {
lazydev = { module = 'lazydev.integrations.blink', score_offset = 100 },
+ avante = {
+ name = 'avante',
+ module = 'blink-cmp-avante',
+ },
+ supermaven = {
+ name = 'supermanve',
+ module = 'blink.compat.source',
@ -182,7 +187,7 @@ index b98ffc6..f0cf036 100644
},
},
@@ -882,19 +974,39 @@ require('lazy').setup({
@@ -882,19 +979,39 @@ require('lazy').setup({
--
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
'folke/tokyonight.nvim',
@ -228,7 +233,7 @@ index b98ffc6..f0cf036 100644
end,
},
@@ -944,7 +1056,39 @@ require('lazy').setup({
@@ -944,7 +1061,39 @@ require('lazy').setup({
main = 'nvim-treesitter.configs', -- Sets main module to use for opts
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
opts = {
@ -269,7 +274,7 @@ index b98ffc6..f0cf036 100644
-- Autoinstall languages that are not installed
auto_install = true,
highlight = {
@@ -974,17 +1118,17 @@ require('lazy').setup({
@@ -974,17 +1123,17 @@ require('lazy').setup({
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
--
-- require 'kickstart.plugins.debug',