Remove Avante leftovers from blink.cmp config
Avante was removed in c26b6c9 but blink-cmp-avante stayed as a dependency and
"avante" stayed first in sources.default, so the provider still loaded at
startup. Restore `keymap = { preset = "super-tab" }` now that LazyVim#6183 has
shipped; the workaround called require() during spec evaluation, which pulled
blink.cmp into startup.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
+2
-20
@@ -1,8 +1,6 @@
|
||||
return {
|
||||
"saghen/blink.cmp",
|
||||
dependencies = {
|
||||
-- For auto-completion in the avante window
|
||||
"Kaiser-Yang/blink-cmp-avante",
|
||||
-- For emoji selection
|
||||
"moyiz/blink-emoji.nvim",
|
||||
},
|
||||
@@ -12,26 +10,10 @@ return {
|
||||
show_in_snippet = false,
|
||||
},
|
||||
},
|
||||
-- use preset again once this is merged: https://github.com/LazyVim/LazyVim/pull/6183
|
||||
-- keymap = { preset = "super-tab" },
|
||||
keymap = {
|
||||
["<Tab>"] = {
|
||||
require("blink.cmp.keymap.presets").get("super-tab")["<Tab>"][1],
|
||||
require("lazyvim.util").cmp.map({ "snippet_forward", "ai_accept" }),
|
||||
"fallback",
|
||||
},
|
||||
},
|
||||
keymap = { preset = "super-tab" },
|
||||
sources = {
|
||||
-- Add 'avante' to the list
|
||||
default = { "avante", "lsp", "path", "snippets", "buffer", "emoji" },
|
||||
default = { "lsp", "path", "snippets", "buffer", "emoji" },
|
||||
providers = {
|
||||
avante = {
|
||||
module = "blink-cmp-avante",
|
||||
name = "Avante",
|
||||
opts = {
|
||||
-- options for blink-cmp-avante
|
||||
},
|
||||
},
|
||||
emoji = {
|
||||
module = "blink-emoji",
|
||||
name = "Emoji",
|
||||
|
||||
Reference in New Issue
Block a user