Use recommended fix for blink.cmp error

Found an issue in the repo about this.
This commit is contained in:
2025-06-17 11:33:10 -04:00
parent 83fae84770
commit d9ab9dc65f

View File

@@ -1,5 +1,3 @@
local presets = require("blink.cmp.keymap.presets")
return { return {
"saghen/blink.cmp", "saghen/blink.cmp",
dependencies = { dependencies = {
@@ -12,9 +10,15 @@ return {
show_in_snippet = false, show_in_snippet = false,
}, },
}, },
-- This started to break and idk why, so doing it manually -- use preset again once this is merged: https://github.com/LazyVim/LazyVim/pull/6183
-- keymap = { preset = "super-tab" }, -- keymap = { preset = "super-tab" },
keymap = presets.get("super-tab"), keymap = {
["<Tab>"] = {
require("blink.cmp.keymap.presets").get("super-tab")["<Tab>"][1],
require("lazyvim.util").cmp.map({ "snippet_forward", "ai_accept" }),
"fallback",
},
},
sources = { sources = {
-- Add 'avante' to the list -- Add 'avante' to the list
default = { "avante", "lsp", "path", "snippets", "buffer" }, default = { "avante", "lsp", "path", "snippets", "buffer" },