fix(blink): disable snippets

This commit is contained in:
2026-02-25 00:27:30 +01:00
parent 7994298eb6
commit 07251ea86e
2 changed files with 15 additions and 4 deletions
+6 -3
View File
@@ -71,13 +71,17 @@ return {
show_documentation = false,
},
},
-- Default list of enabled providers defined so that you can extend it
-- elsewhere in your config, without redefining it, due to `opts_extend`
sources = {
default = {
"lsp",
"path",
},
transform_items = function(_, items)
return vim.tbl_filter(function(item)
return item.kind
~= require("blink.cmp.types").CompletionItemKind.Snippet
end, items)
end,
},
keymap = {
preset = "none",
@@ -89,5 +93,4 @@ return {
["<C-p>"] = { "snippet_backward", "fallback" },
},
},
opts_extend = { "sources.default" },
}