feat: an extra for mini.snippets. Prepare for native blink integration

This commit is contained in:
abeldekat 2025-01-03 19:21:18 +01:00
parent 75de3f0bd4
commit 852beed925

View file

@ -138,12 +138,17 @@ return {
snippets_in_cmp = false snippets_in_cmp = false
snippet_select = snippet_select_for_blink snippet_select = snippet_select_for_blink
opts.sources.default = vim.tbl_filter(function(source) -- rm builtin snippets if snippets_in_cmp then
if source == "snippets" then opts.sources.default = { "mini_snippets" }
return false else
end -- No snippets in completion, remove blink's builtin snippets
return true opts.sources.default = vim.tbl_filter(function(source)
end, opts.sources.default) if source == "snippets" then
return false
end
return true
end, opts.sources.default)
end
-- Blink defines the <s-tab> key. -- Blink defines the <s-tab> key.
opts.snippets = { opts.snippets = {